Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Erik Price
On Thursday, January 31, 2002, at 06:12 PM, Lars Torben Wilson wrote: > On Thu, 2002-01-31 at 14:57, Erik Price wrote: >> I'm running PHP 4.1.0 on LAMP w/register_globals=off > > > Since register_globals is off, the $_SERVER array will no

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Chris Randall
I too just had this problem, it seems that this happens when php is installed as a cgi binary with apache, perhaps if you use $_SERVER["PATH_INFO") or perhaps $_SERVER["SCRIPT_NAME"] or even $path_info, just some ideas, i've not tested this at all yet... good luck 1/31/02 2:57:55 PM, Erik P

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 14:57, Erik Price wrote: > I have a file called "index.php". This file includes another file, > "foot.inc". In the file "foot.inc", amidst much HTML code, I have a > simple line: > > echo "$PHP_SELF" ; > ?> > > The expected result is that "index.php" will appear in my