Hi why is the following happening?
I passed the following info to this page via url.
index2.php?hostname=ppp-135-16.25-151.libero.it
The code is as follows.
$where = explode('.', $hostname);
$where = $where[count($where) - 1];
if ($where == "nl"){echo 'You are in the Netherlands.';}
if ($where == "com" || "net" || "org" || "edu" || "biz"){echo 'You are in the USA.';}
if ($where == "at"){echo 'You are in Austria.';}
if ($where == "au"){echo 'You are in Australia.';}
if ($where == "ca"){echo 'You are in Canada.';}
if ($where == "it"){echo 'You are in Italy.';}
if ($where == "be"){echo 'You are in Belgium.';}
if ($where == "cn"){echo 'You are in China.';}
I got:
You are in the USA.You are in Italy.