Answers for "get path 3 of url php"

PHP
2

php get url path name

parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH );
Posted by: Guest on November-04-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

Browse Popular Code Answers by Language