RE: [PHP] php_self
| From: | Matt Williams | Date: | Sat, 21 Oct 2000 13:57:55 +0000 |
| Subject: | RE: [PHP] php_self | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21550@lists.php.net to get a copy of this message | ||
> I'm using PHP4.03 on NT in CGI mode with Apache.
>
> If I call php_self() in the file /foo.php (relative to server root), it
> return /php/php.exe/foo.php
>
> Is this the correct behaviour?
Sure is
use basename($PHP_SELF) to get the correct value ie. foo.php
M@