Re: SCRIPT_NAME

From: Date: Fri, 21 Oct 2005 23:58:33 +0000
Subject: Re: SCRIPT_NAME
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-224436@lists.php.net to get a copy of this message
... what, the off by one error? Hey, I was just providing suggestion off the top of my head. :-P -Minuk Robert Cummings wrote:
On Thu, 2005-10-20 at 23:27, Minuk Choi wrote:
Off the top of my head... $filename = $_SERVER['PHP_SELF']; $strippedFilename = substr($filename, strrpos($filename, '/'));
Won't work, I'll leave the reason as an exercise :B Cheers, Rob.


« previous php.general (#224436) next »