Answers for "how to check our url is domain or subdomain in php"

PHP
1

if browser url is having domain in it check using php

$url = 'http://' . $_SERVER['SERVER_NAME'] . $_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

check is domain php

filter_var('domain.addin.com', FILTER_VALIDATE_DOMAIN);
Posted by: Guest on February-17-2022

Browse Popular Code Answers by Language