note 31456 added to reserved.variables

From: Date: Tue, 22 Apr 2003 19:09:54 +0000
Subject: note 31456 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-46946@lists.php.net to get a copy of this message
Another way to get the current script filename without the path: $filename = basename($PHP_SELF); or (without the .php extension): $filename = basename($PHP_SELF, ".php"); (Use $_SERVER['PHP_SELF'] if your setup prefers that.) -- http://www.php.net/manual/en/reserved.variables.php http://master.php.net/manage/user-notes.php?action=edit+31456 http://master.php.net/manage/user-notes.php?action=delete+31456 http://master.php.net/manage/user-notes.php?action=reject+31456

« previous php.notes (#46946) next »