On Apache Windows 2000, PHP 4.0.5

$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
"Apache/1.3.14 (Win32)"

On Apache Linux Redhat, PHP 4.0.6
$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
Apache/1.3.27 (Unix) (Red-Hat/Linux) blah blah b;ah

So, you could easily use a regex to extract the (Win32) or (Unix) strings for your branch / test.

These variables are probably now called $_SERVER["SERVER_SOFTWARE"] under PHP > 4.2 - anybody care to confirm these results ?

Hope that helps
Regards,
Neil Smith.



At 00:42 04/01/2003 +0000, you wrote:
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Message-ID: <000c01c2b38a$166a01e0$3700a8c0@DaMouse>
From: "DaMouse" <[EMAIL PROTECTED]>
To: "PHP - Win" <[EMAIL PROTECTED]>
Date: Sat, 4 Jan 2003 00:41:19 -0000
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="----=_NextPart_000_0008_01C2B389.FFECDDC0"
Subject: getting the OS

ok I develop stuff on both windoze and linux so say I left my computer running and forgot which it was running and wanted to make a OS specific script from another computer. How could I tell what OS it was to see if I needed to go reboot it?



Ensign Baker
HCO Officer
USS Atlantis

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to