1$url = $_SERVER['SERVER_NAME'];
2
3if (!strpos($url,'mysql')) {
4echo 'No mysql.'; //swapped with other echo statement
5} else {
6echo 'Mysql exists.';
7}
1$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
2
3if (!strpos($url,'mysql')) {
4echo 'No mysql.'; //swapped with other echo statement
5} else {
6echo 'Mysql exists.';
7}