Código:
Tienen ideas de el por que? Gracias <?php
if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) {
echo "Estoy usando Internet Explorer";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Opera")) {
echo "Estoy usando Opera";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Chrome")) {
echo "Estoy usando Chrome";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Firefox")) {
echo "Estoy usando Firefox";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Safari")) {
echo "Estoy usando Safari";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Symbian")) {
echo "Estoy usando Symbian";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "Android")) {
echo "Estoy usando Android";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "iPhone")) {
echo "Estoy usando iPhone";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "iPod")) {
echo "Estoy usando iPod";
}
if (strstr($_SERVER["HTTP_USER_AGENT"], "iPad")) {
echo "Estoy usando iPad";
}
else{
echo "No estoy usando ninguno.";
}
?>


