From 76aee4339de54f2c954bb1cbdfbdce7fb2b31347 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Mon, 28 Aug 2000 22:29:18 +0000 Subject: [PATCH] * added docs for php_uname() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31447 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/functions/info.xml b/functions/info.xml index 44e9d6af1e..f958512a3b 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -984,7 +984,7 @@ echo "Current PHP version: ".phpversion(); string php_sapi_name - void + @@ -1008,6 +1008,38 @@ else + + + php_uname + + Returns information about the operating system PHP was built on + + + + Description + + + string php_sapi_name + + + + + Php_uname returns a string with a description + of the operating system PHP is built on. + + + + <function>php_uname</function> Example + +if (substr(php_uname(), 0, 7) == "Windows") { + die("Sorry, this script doesn't run on Windows.\n"); +} + + + + + + putenv