Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Chris Morrow
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 ju

RE: [PHP] Accessing cookies in required files

2002-06-27 Thread John Holmes
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, J

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 un