RE: [PHP] how to change SCRIPT_FILENAME syntax??

From: Date: Tue, 03 Aug 2004 12:14:14 +0000
Subject: RE: [PHP] how to change SCRIPT_FILENAME syntax??
Groups: php.general 
Request: Send a blank email to php-general+get-192534@lists.php.net to get a copy of this message
[snip] I have the following code on my page: $page = $_SERVER['SCRIPT_FILENAME']; // gets current url this is part of a INSERT INTO mysql/php script. when the table gets populated, the entire url string is there: /home/com/sitename/html/secure/sales2.php I would like it to read: sales2.php How would I change the syntax to eliminate all the other information? [/snip] http://us2.php.net/basename

« previous php.general (#192534) next »