Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: However, then in the script I have a require tag (essentially like require('http://www.mydomain.com/common.php')) line. I call this line, and within that file (same domain) the $_COOKIE[] array as well as variables such as $cookiename are all blank.

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Luke Sneeringer
That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP extention file fail? What happens is that the calls seem to produce no output (but they don't fail). In other words, require() returns true,

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP extention file fail? You've already demonstrated that you know included code inherits the parent's

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Jason Wong
On Monday 23 December 2002 15:19, Luke Sneeringer wrote: I have a question regarding the use of the $_COOKIE autoglobal and include() or require() tags. I have a script (index.php) which gets cookie variables. This works fine, and the cookies are accessable through both $_COOKIE[cookiename]

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Luke Sneeringer
That worked perfectly! The problem is fixed. Thank you so much. Luke Chris Wesley wrote: On Mon, 23 Dec 2002, Luke Sneeringer wrote: That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP

[PHP] $_COOKIE and include() or require()

2002-12-22 Thread Luke Sneeringer
I have a question regarding the use of the $_COOKIE autoglobal and include() or require() tags. I have a script (index.php) which gets cookie variables. This works fine, and the cookies are accessable through both $_COOKIE[cookiename] and $cookiename. However, then in the script I have a