Chris wrote:
Hi Matt,
I use define's.
me too. mostly because unless you use the runkit extension or
something you can't undefine or change the values of a constant.
bare in mind though that define() is horribly slow (to paraphrase
Rasmus) which may be the reason many projects choose to use
On 2/9/06, Jochem Maas [EMAIL PROTECTED] wrote:
bare in mind though that define() is horribly slow (to paraphrase
Rasmus) which may be the reason many projects choose to use variables
instead. see here:
Thanks Chris and Jochem!
That should've been my follow up question - which is, if define()
Matt:
That should've been my follow up question - which is, if define() is a
lot safer and more elegant to use than variables, why do many projects
use variables?
My use of CONSTANCE's and variables depend upon need. If I require a
constant throughout the main() portion of my code, then I
tedd wrote:
Matt:
That should've been my follow up question - which is, if define() is a
lot safer and more elegant to use than variables, why do many projects
use variables?
My use of CONSTANCE's and variables depend upon need. If I require a
constant throughout the main() portion of my
At 07:56 PM 2/8/2006, Matt Arnilo S. Baluyos (Mailing Lists) wrote:
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
Hello Everyone,
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
However, I've seen some open-source projects which either
Hi Matt,
I use define's.
With variables it's easy to forget to global'ise it when you go into a
function, define's don't have this issue.
Matt Arnilo S. Baluyos (Mailing Lists) wrote:
Hello Everyone,
I have a config.inc.php file which basically contains all the
configuration info that the
7 matches
Mail list logo