Re: function basename()

From: Date: Thu, 26 Jul 2001 21:32:53 +0000
Subject: Re: function basename()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61102@lists.php.net to get a copy of this message
Marcus wrote: > > shouldn't the function basename() return only the > script part and not the query part? > > Yes i know it would make a difference if a filesystem could have '?' in > filenames or if you wanted to handle those for search operations. But > perhaps ther could be another switch or just a function > filename/scriptname() You're probably looking for the $PHP_SELF variable. basename() is for file names, not HTTP paths. - Stig

« previous php.dev (#61102) next »