Using a MySQL class
View Single Post
11-07-2007, 12:31 PM
Join Date: Sep 2007
On the subject of "defines", why arn't people using the PHP5 equivalent, that's,
. I see it all the time, people create a Database class (for example) then place the defines that work with it in the global scope, rather than using class to encapsulate this information.
Another advantage of this is that you don't have to be so strict with your const names, i.e.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
View Public Profile
Send a private message to Karl
Find More Posts by Karl