Answers for "php get http request from url"

PHP
0

php request uri

$url = parse_url($_SERVER['REQUEST_URI']);

if ($url != '/') {
    parse_str($url['query']);
    echo $id;
    echo $othervar;
}
Posted by: Guest on August-31-2021
3

get url with php

$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Posted by: Guest on December-02-2020

Browse Popular Code Answers by Language