[PHP] Accessing cookies in required files

2002-06-27 Thread Chris Morrow
Hi, Can anyone help with this problem? I have a file called settings.inc which I include in all files on my site like this: require(settings.inc); Up until now this has worked fine. But now I have a function in the settings.inc file that tries to read the value of a cookie called testcookie.

Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Leif K-Brooks
This sounds like a problem with the function, not file. Are you globaling the variable with the cookie? Chris Morrow wrote: Hi, Can anyone help with this problem? I have a file called settings.inc which I include in all files on my site like this: require(settings.inc); Up until now this

RE: [PHP] Accessing cookies in required files

2002-06-27 Thread John Holmes
, June 27, 2002 4:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Accessing cookies in required files Hi, Can anyone help with this problem? I have a file called settings.inc which I include in all files on my site like this: require(settings.inc); Up until now this has worked fine. But now

Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Chris Morrow
$_COOKIE['testcookie'] and it's always available, regardless of scope. ---John Holmes... -Original Message- From: Chris Morrow [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 4:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Accessing cookies in required files Hi,