Re: php_self
| From: | Ken Chew | Date: | Sat, 21 Oct 2000 15:02:45 +0000 |
| Subject: | Re: php_self | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21561@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
ok. Thanks can't find a place in the documentation that confirms it.
> use basename($PHP_SELF) to get the correct value ie. foo.php
This doesn't work though if it is the files is /bar/foo.php
On a more general note, is there any problem with this other then the url is
changed and your path to php.exe is revealed.
Ken