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? thanks!!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php