Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get domain name from full URL Example

<?php 
// Get The Current Page URL with PHP $_SERVER. 
  
$fullurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 
                "https" : "http") . "://" . $_SERVER['HTTP_HOST'] .  
                $_SERVER['REQUEST_URI']; 
  
echo $fullurl; 
?>
Source by www.pakainfo.com #
 
PREVIOUS NEXT
Tagged: #Get #domain #full #URL #Example
ADD COMMENT
Topic
Name
8+4 =