note 30376 deleted from reserved.variables by didou

From: Date: Tue, 05 Aug 2003 15:41:48 +0000
Subject: note 30376 deleted from reserved.variables by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53421@lists.php.net to get a copy of this message
Note Submitter: breaker@coder.hu ---- Hi For those, who need only the script name of $PHP_SELF, that is currently running, here is a little script that will give ya: $host=$PHP_SELF; $i=strlen($host); while (($stop!=1) and ($i>=0)) { if ($host[$i] !="/") { $new = $host[$i].$new; $i--; } else $stop=1; } $new will contain the name of the current file(ex. test.php) instead of /currentdir/test.php

« previous php.notes (#53421) next »