Re: Detectar SO Ayuda
| From: | Jaime A. Chavarriaga L. | Date: | Mon, 01 Apr 2002 13:14:01 +0000 |
| Subject: | Re: Detectar SO Ayuda | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-20937@lists.php.net to get a copy of this message | ||
Pablo
... deseas saber que sistema operativo estas usando en el servidor ??
puedes usar php_uname...
http://www.php.net/manual/en/function.php-uname.php
ejemplo...
<?php
if (substr(php_uname(), 0, 7) == "Windows") {
die ("Lo siento, este script no funciona en Windows.\n");
}
?>
== sobre tu pregunta...
> <?
> echo getenv("SERVER_SOFTWARE");
> ?>
Usando Nusphere Apache/MySQL sobre Windows ME...
Apache/1.3.20 (Win32) mod_perl/1.25 mod_ssl/2.8.4 OpenSSL/0.9.6
8-)
jaime