Sign Up
Log In
C
cold
Jun 5, 2007
Joined Dec 22, 2006
Discussions
Posts
22
Discussions
16
Mentions
C
Observer pattern
PHP Help
General Help
trying to use the observer pattern,i found that the one object that's an Observer could be Observable(subject) at the same time.is this normal? if so,should it extend oberver ...
0
C
pass parameters to singleton!
PHP Help
PHP Coding
following this article on the Observer Pattern: http://mesoimpact.com/articles/errorHandling.html i in the following class,i use the getinstance to instantiate other classes,h...
0
C
my framework alltogether
PHP Help
General Help
i've developed a simple framework for handling my simple projects.however,each class does it job separatly.they are not united in a good way. directory structure: /framework |...
3
C
using a sql file
PHP Help
PHP Coding
what if i have a sql file with the tables to be created and some data to be populated as well. i want to use php to apply this sql file to a specific database. do i have to re...
7
C
initializing variables
PHP Help
PHP Coding
for security and best practice,i would like to initialize variables in the begining of my scripts. i know that i initialize the following like this : $string = ''; $boolean=tr...
1
C
how to loop in templates?
PHP Help
PHP Coding
having developed this simple template engine for my own projects,the engine simply replaces the {replacable} tags with the appropriate value. the template file is read into a ...
3
C
learning from apps and license
Discussion
Echo Lounge
well,if i open the source code for some apps to learn from the way they handle something.does this violate the license? i do not copy code,i learn and write down my own code.
7
C
storing app settings
PHP Help
PHP Coding
storing settings in php files like this: File : settings.php <?php $settings['cacheDir']='cache_directory'; $settings['templateDir']='template directory'; ?> File: index.php r...
7
C
storing translations
PHP Help
PHP Coding
-translations for different languages are stored in .ini files. -the choosen language is stored in a $session['lang'] variable. -for every file accessed i load the .ini file r...
1
C
handling errors !
PHP Help
General Help
when coding.say that i call function UpdateLog() which must open a file,append to it then close it. alot of errors could rise(file is not there,unable to write..etc). which is...
4
C
which way is better?
PHP Help
PHP Coding
i'm developing a simple tempalte engine. what i've been doing is that i have a .php page with the array vars() containing pair of [ToBeReplaced][$value]. i have another .html ...
1
C
gather classes together
PHP Help
PHP Coding
hello, using php4 i'm having a problem gathering all my classes together.i have three classes(ErrorHandler,i18n and templateEngine),placed in separate files. should i create o...
2
C
parsing unicode ini files
PHP Help
PHP Coding
i am trying to parse .ini language files for different languages. i am using parse_ini_file() which succeeds in parsing english language only(i can't parse arabic language) ca...
1
C
i18n
PHP Help
PHP Coding
for i18n.why do some apps like joomla tend to use .ini files to strore string in multiple languages.why not just use a php file containing the strings and store it i unicode f...
2
C
does it all end in another framework !
PHP Help
General Help
well..planning to start a new commercial project in php5.. for me to use ajax i'll be using something like SAJAX or another for me to be MVC compliant i'll be using a template...
0
C
new project!
Discussion
Echo Lounge
well,i simply was a php coder using php4,but new to php5. i'm willing to develop a commercial application using php.though about frameworks and considered symfony or cakephp(z...
1
Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.