$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