note 89217 deleted from function.basename by danbrown

From: Date: Sat, 28 Feb 2009 17:07:14 +0000
Subject: note 89217 deleted from function.basename by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151251@lists.php.net to get a copy of this message
Note Submitter: menardmam at hotmail dot com ---- about the Basename without query string, here what is suggested : $filename = array_shift(explode('?', basename($url_path))); It d'ont work for me, here is what work : $filename = array_shift(explode('?', basename ($_SERVER['REQUEST_URI'])));

« previous php.notes (#151251) next »