note 43282 deleted from reserved.variables by aidan

From: Date: Mon, 13 Sep 2004 07:37:50 +0000
Subject: note 43282 deleted from reserved.variables by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76590@lists.php.net to get a copy of this message
Note Submitter: verde at sardware dot com ---- If you're interested in having just the filename instead of it's path, you can use this: function get_scriptname() { $spath = $_SERVER['PHP_SELF']; $i = strlen($spath); for ($j = $i-1;$j>=0;$j--) { if ($spath[$j] == '/') { break; } } $justfile = substr($spath,$j+1); return $justfile; }

« previous php.notes (#76590) next »