Try:
PHP Code:
$str = explode('/', $_SERVER['PHP_SELF']); $str = $str[0];
What it happening is it's showing the URL of the script including all the folders, you gotta explode off the slashes.
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
Last edited by rogem002; 09-21-2007 at 04:19 PM..
|