note 75107 rejected from function.substr by tularis

From: Date: Sat, 12 May 2007 20:48:50 +0000
Subject: note 75107 rejected from function.substr by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126464@lists.php.net to get a copy of this message
Note Submitter: axew3 at w3it dot org ---- I want this to get in any case the name of current page and his extension: $pathF = __FILE__ ; echo $pathF . '<br />'; echo $totL = strlen($pathF) .'<br />'; echo $posL = strrpos($pathF, "\\") . '<br />'; echo $rest = substr($pathF, $posL + 1, $totL); // return 'wanted.php'. The page file name and extension

« previous php.notes (#126464) next »