Answers for "url php"

PHP
11

php get full url

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

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
1

if browser url is having query string after domain name in it check using php

$url = $_SERVER['REQUEST_URI'];

if (!strpos($url,'mysql')) {
echo 'No mysql.'; //swapped with other echo statement
} else {
echo 'Mysql exists.';
}
Posted by: Guest on December-04-2020
0

php home url

<?php echo get_home_url(); ?>
Posted by: Guest on June-23-2021
0

how to fetch data from url in php properly

Add action="<?php $_SERVER['REQUEST_URI']; ?>" if you dont know just copy and paste it
Posted by: Guest on July-25-2020

Browse Popular Code Answers by Language