Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

complete 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: #complete #url #php
ADD COMMENT
Topic
Name
8+6 =