getting a filename [with no extension] out of a url

From: Date: Thu, 30 Jun 2005 23:54:42 +0000
Subject: getting a filename [with no extension] out of a url
Groups: php.general 
Request: Send a blank email to php-general+get-217934@lists.php.net to get a copy of this message
if $_SERVER['SCRIPT_NAME'] give this.... /folder/folder/Library/php/filename.php what would be the proper way to strip the string until only 'filename' is left I'm a bit new at eregi stuff any help would be appreciated many thanks g

« previous php.general (#217934) next »