Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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]";
 
PREVIOUS NEXT
Tagged: #full #url #php
ADD COMMENT
Topic
Name
5+4 =