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
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.
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']
3 matches
Mail list logo