Question : php get full url
Answered by : code-grepper
$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
Source : | Last Update : Wed, 06 Nov 19
Question : complete url php
Answered by : portapipe
//Get complete URL with http/https and GET parameters
$complete_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Source : | Last Update : Wed, 23 Jun 21