RE: [PHP] php_self

From: Date: Sat, 21 Oct 2000 17:34:32 +0000
Subject: RE: [PHP] php_self
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21574@lists.php.net to get a copy of this message
> This doesn't work though if it is the files is /bar/foo.php This doesn't make any difference. If you use basename($PHP_SELF) as a link, the link url will still be pointing to /bar/foo.php because it's relative. > 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. It's a nightmare if you've got other relative links in the pages. There are also other variables that you can use for this. See http://www.php.net/manual/language.variables.predefined.php for more details. M@

« previous php.general (#21574) next »