note 39709 rejected from reserved.variables by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 Feb 2004 10:00:50 +0000 |
| Subject: | note 39709 rejected from reserved.variables by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64817@lists.php.net to get a copy of this message | ||
Note Submitter: jim_alex_p@hotmail.com
----
'PHP_SELF'
The filename of the currently executing script, relative to the document root. For instance,
$_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be
/test.php/foo.bar.
If PHP is running as a command-line processor, this variable is not available.
===
Arg ... what do mean exactly by command-line processor and how is one supposed to find out. I have
some scripts that $PHP_SELF and they're simply not working anymore. Is there a new approach for
self-referencing a file :/ ?