NYCPHP Meetup

NYPHP.org

[nycphp-talk] Setting Constants Globally?

Lance Lovette lance.listserv at optimost.com
Fri May 9 13:42:38 EDT 2003


If you have the ability to compile extensions into PHP and you're not
running under Windows you may find useful an extension I wrote that
addresses this problem and more.

http://pwee.sourceforge.net/

Lance

-----Original Message-----
From: Jim Musil [mailto:jmusil at villagevoice.com] 
Sent: Friday, May 09, 2003 12:34 PM
To: NYPHP Talk
Subject: [nycphp-talk] Setting Constants Globally?



Hi,

Pardon me if the answer to this question is obvious, but is there a way to
define my own constants that are global for all php scripts?

I see that I could auto_prepend a file to every script, but I'm more
interested in being able to set my own constant.

Something like PATH_TO_DEVTOOLS ...

Maybe there is a better way to do something like this?



Jim




--- Unsubscribe at http://nyphp.org/list/ ---





More information about the talk mailing list