page's current url
Moderator: General Moderators
page's current url
How to get into variable page's current url?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
try
and see for yourself.. there is a whole load of variables you can use 
Code: Select all
echo '<pre>'.print_r($_SERVER).'</pre>';Thank you for quick reply.
What I want to acomplish is to get curent web address in format like in address bar (viewtopic.php?p=171938#171938)
What I want to acomplish is to get curent web address in format like in address bar (viewtopic.php?p=171938#171938)
... look at those variables ...
Code: Select all
echo $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];