note 33301 added to reserved.variables

From: Date: Sat, 21 Jun 2003 20:49:45 +0000
Subject: note 33301 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-50791@lists.php.net to get a copy of this message
$PATH_TRANSLATED gives you the filesystem-based path to your script including the filename itself. If you want the path without the actual filename do this: $path = preg_replace('/[^\/]*$/','',$PATH_TRANSLATED); this will remove everything after the last slash. ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33301 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33301&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33301&report=yes

« previous php.notes (#50791) next »