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
Function whatever()
{
global $testcookie;
or
global $HTTP_COOKIE_VARS;
or
upgrade your PHP and jus use $_COOKIE['testcookie'] and it's always
available, regardless of scope.
---John Holmes...
-Original Message-
From: Chris Morrow [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Thanks, globalising it has sortd it out.
John Holmes [EMAIL PROTECTED] wrote in message
000401c21db7$47aee4a0$b402a8c0@mango">news:000401c21db7$47aee4a0$b402a8c0@mango...
Function whatever()
{
global $testcookie;
or
global $HTTP_COOKIE_VARS;
or
upgrade your PHP and jus use
3 matches
Mail list logo