Hey,
i wanted to know if there's a way to get only the page's name without the folder name [index.php] and not [forum/index.php]..
Thanks, Tal.
global variables..
Moderator: General Moderators
-
The current scriptname is found in this global variable:
djot
-
The current scriptname is found in this global variable:
Code: Select all
$_SERVER["SCRIPT_NAME"]-
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
fyi it never hurts to have a look in
to give you an idea of what's needed
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';