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"];

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *