
Here is short php code to get full link of a website including path. Step-1 Create a file index.php Step-2 Now, Add following codes in index.php Domain code: <?php echo”.$_SERVER[‘HTTP_HOST’].” ?> Domain path code: <?php echo”.$_SERVER[‘REQUEST_URI’].” Read more…