php get domain name from url
parse_url('http://www.website.com/hey.php', PHP_URL_HOST);
php get domain name from url
parse_url('http://www.website.com/hey.php', PHP_URL_HOST);
if browser url is having domain name in it check using php
$url = $_SERVER['SERVER_NAME'];
if (!strpos($url,'mysql')) {
echo 'No mysql.'; //swapped with other echo statement
} else {
echo 'Mysql exists.';
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us