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.
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
, 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
$_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,
4 matches
Mail list logo