19 C
New York
Saturday, August 13, 2022

How to get current page url in PHP?

- Advertisement -





Whenever you need to get actual page url in Native PHP then you can do using this post. I give you the example that way you can get easily current URL in PHP. following PHP code through you can get:

Example:

$currentLink = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

print_r($currentLink);

- Advertisement -

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles