Short story: I need to write a PHP script which finds the correct OS type from uname (eg: both wince
and winnt
would return windows
). See here for more info.
Shouldn't this be a community wiki?
Yes but...see here.
How to help: If your OS is not listed below, please run this code and share your findings:
<?php
echo php_uname();
?>
List of shared results
- Darwin ... 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
- Darwin ... 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
- Windows NT ... 6.1 build 7600
- Linux ... 2.6.24-24-xen #1 SMP Tue Aug 18 18:15:39 UTC 2009 x86_64
- Linux ... 2.6.34.7-56.fc13.x86_64 #1 SMP Wed Sep 15 03:36:55 UTC 2010 x86_64
- Linux ... 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686
- Windows NT ... 5.1 build 2600
- Windows NT ... 6.0 build 6002 (Windows Server 2008 Standard Edition Service Pack 2) i586
- Windows NT ... 6.1 build 7600 ((null)) i586
It's interesting to note that even when certain conditions match exactly, uname still produces different results.