title: php-cli: What is the best way to detect the hosting OS?
body: <p>I have a script which I want to run on windows under Cygwin and on Linux. I have to make distinction between the two running environment for some purposes. What is the best way to do it?</p>