Answers for "php get link"

PHP
11

php get full url

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

get url link in php

actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Posted by: Guest on January-19-2021
0

php add get to link

$url .= $url.(parse_url($url, PHP_URL_QUERY) ? '&' : '?').'category=action';
Posted by: Guest on October-17-2020

Browse Popular Code Answers by Language