Introducing Fire: Similar to Cake’s Bake and RoR’s script/generate |
[eluser]Michael Wales[/eluser]
From the PHP documentation: Quote:php_uname() will return the OS of the system currently running PHP. There is some debate as to whether or not PHP_OS returns the build machine or does in fact return a cleaner string representing the OS currently running PHP. I just did a test on this machine (WinXP, Service Pack 2) and the return was: Quote:Windows NT (computer name) 5.1 build 2600 for the following code: Code: <?php I seriously doubt Zend is building PHP on Windows boxes, so I'd say the PHP_OS constant is a pretty good choice. |
Welcome Guest, Not a member yet? Register Sign In |