Skip to content

October 1, 2009

Ever wondered how to query the url of the page you are on?

Get The current page url you are on

In a php tag

echo ‘http://’.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
Read more from Developer, PHP

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments