PHP documentation.
Home / PHP / Manual / ...
(PHP 4 >= 4.0.2)
string php_uname (void)
string php_uname
php_uname() returns a string with a description of the operating system PHP is built on.
Example 1. php_uname() Example
if (substr(php_uname(), 0, 7) == "Windows") { die("Sorry, this script doesn't run on Windows.\n"); }
Most recently updated on 11 May, 2003