In PHP how do you get the page URL? thanks
Get Page URL
Started by _*Joel@JHD_*, Jul 18 2005 06:58 PM
3 replies to this topic
#1 _*Joel@JHD_*
Posted 18 July 2005 - 06:58 PM
#2
Posted 19 July 2005 - 01:53 AM
<?php echo $_SERVER['PHP_SELF']; ?>
Is the simple way to get the page name.
#3 _*Joel@JHD_*
Posted 19 July 2005 - 08:45 AM
thanks...i was lookin my books and stuff but couldnt find it...thanks
#4
Posted 19 July 2005 - 12:16 PM
If you want the full url (minus the domain + the query string), then you'd want to do this;
$_SERVER['REQUEST_URI'];
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
