From b98d13dfff1be571195202fb2feb93b0ae2aa763 Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Mon, 25 Jun 2001 13:01:14 +0000 Subject: [PATCH] Some obvious cross-reference (put/get env). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50179 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/functions/info.xml b/functions/info.xml index 1331f5697b..1172ae7ab9 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -5,7 +5,7 @@ assert - Checks if assertion is false + Checks if assertion is FALSE Description @@ -18,7 +18,7 @@ assert will check the given assertion and take appropriate - action if its result is false. + action if its result is FALSE. If the assertion is given as a string it @@ -31,7 +31,7 @@ Assertion should be used as a debugging feature only. You may use them for sanity-checks that test for conditions that should - always be true and that indicate some programming errors if not + always be TRUE and that indicate some programming errors if not or to check for the presence of certain features like extension functions or certain system limits and features. @@ -120,7 +120,7 @@ assert_options will return the original - setting of any option or false on errors. + setting of any option or FALSE on errors. @@ -139,7 +139,7 @@ - Returns true if the extension identified by + Returns TRUE if the extension identified by name is loaded. You can see the names of various extensions by using phpinfo. @@ -191,7 +191,7 @@ Returns the value of the environment variable - varname, or false on an error. + varname, or FALSE on an error. @@ -212,6 +212,10 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user + + See also + putenv. + @@ -232,7 +236,7 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user Returns the current value of the PHP configuration variable - specified by varname, or false if an error + specified by varname, or FALSE if an error occurs. @@ -349,7 +353,7 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user Returns the time of the last modification of the current page. The value returned is a Unix timestamp, suitable for - feeding to date. Returns false on error. + feeding to date. Returns FALSE on error. getlastmod() example @@ -382,7 +386,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); - Returns the current script's inode, or false on error. + Returns the current script's inode, or FALSE on error. See also getmyuid, @@ -412,7 +416,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); - Returns the current PHP process ID, or false on error. + Returns the current PHP process ID, or FALSE on error. @@ -444,7 +448,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); - Returns the user ID of the current script, or false on error. + Returns the user ID of the current script, or FALSE on error. See also getmypid, @@ -508,7 +512,7 @@ echo $dat["ru_utime.tv_usec"]; # user time used (microseconds) Changes the value of a configuration option, returns - false on failure, and the previous value of the + FALSE on failure, and the previous value of the configuration option on success. @@ -539,7 +543,7 @@ echo $dat["ru_utime.tv_usec"]; # user time used (microseconds) Returns the value of the configuration option on success, - false on failure. + FALSE on failure. See also ini_alter, @@ -589,7 +593,9 @@ echo $dat["ru_utime.tv_usec"]; # user time used (microseconds) Sets the value of the given configuration option. Returns the old - value on success, false on failure. + value on success, FALSE on failure. The configuration + option will keep this new value during the script's execution, + and will be restored at the script's ending. Not all the available options can be changed using @@ -1270,6 +1276,10 @@ putenv ("UNIQID=$uniqid"); + + See also + getenv. +