how to change SCRIPT_FILENAME syntax??
| From: | msa | Date: | Mon, 02 Aug 2004 22:10:01 +0000 |
| Subject: | how to change SCRIPT_FILENAME syntax?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-192533@lists.php.net to get a copy of this message | ||
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!!!!