here is url:
http://127.0.0.1/atlantared/admin/adminhome.php
I am on above url page
now i want to fetch current page name? how i can do so, mean i want to fetch adminhome.php form this
http://127.0.0.1/atlantared/admin/adminhome.php?ab=12
will this method also apply on 2nd url or not? if not how can i use it for 2nd URL
fetching current pagename
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
yes exactally.
to view this array do
then find what you are looking for and use it just like you would use the $_POST array, $_GET array, or a regular array.
to view this array do
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';Code: Select all
basename($_SERVER['PHP_SELF'])