Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Andrey Hristov
for other way. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Gregor Maier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 6:37 PM Subject: Re: [PHP] constant arrays or something like #define in c

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Gregor Maier
Unfortunaly that's not an option because I must be able to make the define in the code: it should be like this: i have a script1.php and script2.php. both include a file template.php in my template.php file I use arrays that should have different names depending on the file that included them.

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Andrey Hristov
You can use define in some main config file which is known by all scripts of the site. For example define ("SESSION_NAME","mysite_sid"); Where you want to use the array ${SESSION_NAME}=array('login'=>'scott',"password"=>"tiger","age"=>"25"); ${SESSION_NAME}['login'] or ${SESSION_NAME}['age']