Tuesday, March 31, 2009

php get detect server operating system

php get detect server operating system

<?php
echo PHP_OS;
?>


<?php
echo stristr(PHP_OS, 'WIN') ? 'Its Windows' : 'Others';
?>


predefined constants

No comments: