Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/07/2007, 11:24
joseluisbz
 
Fecha de Ingreso: febrero-2007
Ubicación: Barranquilla, Colombia
Mensajes: 181
Antigüedad: 17 años, 3 meses
Puntos: 3
Re: Cómo detectar le Sistema Operativo del Cliente, No del Servidor en PHP

$userAgent = $_SERVER[HTTP_USER_AGENT];
$userAgent = strtolower ($userAgent);
if(strpos($userAgent, "windows") !== false)
{
print ("<P>OS Client: Windows $_SERVER[REMOTE_ADDR]");
}
if(strpos($userAgent, "linux") !== false)
{
print ("<P>OS Client: Linux $_SERVER[REMOTE_ADDR]");
}
$PHP_OS = PHP_OS;
print ", OS Server: $PHP_OS $_SERVER[SERVER_NAME]";


http://www.phpfreaks.com/phpref.php
http://www.webnova.com.ar/codigo-fuente.php?recurso=429
http://www.webnova.com.ar/codigos-fuentes.php?recurso=8
http://www.webnova.com.ar/recursos-webmaster.php
__________________
Jose Luis Bernal Zambrano
Please response to:
[email protected]