Prima il sorgente..
---------------8<-html-&-php-------------------------
<html>
<title>
Spaghetti :o)
</title>
<body>
<?
echo "Stai usando $HTTP_USER_AGENT. <br>";
if ($HTTP_USER_AGENT == "Windows") {
echo "..Qui non sei benvenuto..";
}
else {
echo "Benvenuto!";
}
?>
</body>
</html>
---------------8<-html-&-php-------------------------
Il problema e' qui: $HTTP_USER_AGENT == "Windows"
che il controllo che desideravo usare non e' "==" ovvero "e' identico a"
ma un qualcosa di tipo "contiene anche" .. Esiste? Nel caso qual'e'?
<?echo "Grazie infinite!!" ?>
Francesco, che sta imparando il <php>..
signature.asc
Description: PGP signature
|