note 44804 deleted from function.basename by tomsommer

From: Date: Tue, 17 Aug 2004 07:29:51 +0000
Subject: note 44804 deleted from function.basename by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74795@lists.php.net to get a copy of this message
Note Submitter: markus at 4pixels dot net ---- Why not a one-liner to get the full name after the dir... $filename = str_replace(dirname($_SERVER['SCRIPT_FILENAME']), '', $_SERVER['SCRIPT_FILENAME']); unless you have to do thousands of iterations I guess the str_replace wont kill nobody's performance... enjoy...

« previous php.notes (#74795) next »