Answers for "get full url in php using server method"

PHP
11

php get full url

$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
Posted by: Guest on October-30-2019
0

full url php

//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]";
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language