Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,907,205 members, 7,009,707 topics. Date: Wednesday, 10 August 2022 at 12:54 PM

Get Current Page URL In PHP - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Get Current Page URL In PHP (305 Views)

How To Change Magento 2 Product Page URL? / Show Image From HTTP URL In React Native / Get Current Page URL In PHP (2) (3) (4)

(1) (Reply) (Go Down)

Get Current Page URL In PHP by yourblogcoach1(m): 9:23pm On Jul 22, 2021
Do you know how to get current page URL in PHP code? If no then check the below link.

https://yourblogcoach.com/tips-tricks/get-current-page-url-in-php/

Being Tricky wink
Re: Get Current Page URL In PHP by tope6217: 4:07am On Jul 23, 2021
$_SERVER['REQUEST_URI

1 Like

Re: Get Current Page URL In PHP by yourblogcoach1(m): 7:29pm On Jul 27, 2021
Yes you are right.
There are also more URL part and you can split them using the $_SERVER global variable with getting the server name, port, http host etc.

(1) (Reply)

How To Get Verified On Google Admob / Learn These Two Forever In-demand Programming Skills And Never Run Out Of Money! / Please Help With Vps Hosting Vendor

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2022 Oluwaseun Osewa. All rights reserved. See How To Advertise. 29
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.