Loading…

How to get complete current page URL in PHP?

$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question