I want to get full URL of the page. So I do the following.
$page_url = $SERVER['$HTTP_HOSTES'].$PHP_SELF."?".$SERVER['QUERY_STRING']; and tried this method too
$page_url = $PHP_SELF."?".$_SERVER['QUERY_STRING'];
In both cases I get the path from the root, but I don't get the URL of the page. Any ideas how I can get the full path?
Example:
http://www.phpbuilder.com/board/newthread.php?s=&action=newthread&forumid=10