Anyone know of a bulletproof way to detecting what OS the script is running on?
Thanks
if you're running apache, then you have the $SERVER_SOFTWARE predefined variable.
<?php
echo strstr($SERVER_SOFTWARE, "(");
?>
for me, the above code prints out
<tt>(Win32)</tt>
is that what you needed?
ok, so this forum formatted what i meant to say.
it outputs the following:
(Win32)