Answers for "php get full url including parameters"

PHP
12

php get full url

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

Get Parameters From a URL String in PHP

phpCopy<?php 
$url = "https://testurl.com/test/[email protected]&name=sarah";
$components = parse_url($url);
parse_str($components['query'], $results);
echo($results['email']); 
?>
Posted by: Guest on April-23-2021

Browse Popular Code Answers by Language