Forum Moderators: coopster
I want to header it back to http://example.com/FolderName/somethingelse.php
but because I have a development and live site, the folder names are different.
Anyway to pick up http://example.com/FolderName/
[edited by: dreamcatcher at 12:34 pm (utc) on July 22, 2008]
[edit reason] use example.com. Thanks. [/edit]
You would in theory never need to upload this setup again, so you can have one local and one live.
As for parsing the PHP_SELF, strrpos gets the last occurance of a needle within a string.
$url = substr ($_SERVER['PHP_SELF'], 0, strrpos ($_SERVER['PHP_SELF'], "/") + 1);