Business Search >>

A | B | H |    Register Business

How to get current page URL in php

How to get current page URL in php

If Current url is https://phpgurukul.com/how-to-get-current-page-url-in-php/

Output :
/how-to-get-current-page-url-in-php/REQUEST_URI  return only  root website folder instead of returning full page.
if you want actual link then use this syntax
Output :
https://phpgurukul.com/how-to-get-current-page-url-in-php/ In the above code $_SERVER[‘HTTP_HOST’] return the  domain name through which the current request is being fulfilled.

PUNJAB (CHOOSE CITY WISE INFORMATION)

Amritsar  I  Barnala  I  Bathinda  I  Faridkot  I  Fatehgarh Sahib  I  Ferozpur  I  Gurdaspur  I  Hoshiarpur  I  Jalandhar  I  Kapurthala  I  Ludhiana  I  Mansa  I  Patiala I  Mohali  I  Muktsar  I  Nawanshahar  I Rupnagar  I  Moga  I  Sangrur  I  Tarntaran  I  Chandigarh