From e47bca799fd0fc7a37c911a32c4a5c6c003b6606 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 22 Nov 2000 09:02:12 +0000 Subject: [PATCH] some corrections regarding phpinfo() and phpcredits() constants # and some indentation changes due to XEmacs running wild again git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@36369 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 269 ++++++++++++++++++++++----------------------- 1 file changed, 131 insertions(+), 138 deletions(-) diff --git a/functions/info.xml b/functions/info.xml index 5d88bd5719..f1deb45afd 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -75,45 +75,45 @@ - option - ini-parameter - default - description + option + ini-parameter + default + description - ASSERT_ACTIVE - assert.active - 1 - enable assert evaluation + ASSERT_ACTIVE + assert.active + 1 + enable assert evaluation - ASSERT_WARNING - assert.warning - 1 - issue a PHP warning for each failed assertion + ASSERT_WARNING + assert.warning + 1 + issue a PHP warning for each failed assertion - ASSERT_BAIL - assert.bail - 0 - terminate execution on failed assertions + ASSERT_BAIL + assert.bail + 0 + terminate execution on failed assertions - ASSERT_QUIET_EVAL - assert.quiet_eval - 0 - - disable error_reporting during assertion expression - evaluation - + ASSERT_QUIET_EVAL + assert.quiet_eval + 0 + + disable error_reporting during assertion expression + evaluation + - ASSERT_CALLBACK - assert_callback - (null) - user function to call on failed assertions + ASSERT_CALLBACK + assert_callback + (null) + user function to call on failed assertions @@ -170,7 +170,7 @@ Loads the PHP extension defined in library. See also the extension_dir configuration + linkend="ini.extension-dir">extension_dir configuration directive. @@ -203,9 +203,9 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user You can see a list of all the environmental variables by using phpinfo. You can find out what many of them mean by taking a look at the CGI - specification, specifically the page on - environmental variables. + specification, specifically the page on + environmental variables. This function does not work in ISAPI mode. @@ -242,7 +242,7 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user To check whether the system is using a configuration file, try + linkend="configuration.file">configuration file, try retrieving the value of the cfg_file_path configuration setting. If this is available, a configuration file is being used. @@ -392,7 +392,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); - This function is not supported on Windows systems. + This function is not supported on Windows systems. @@ -628,7 +628,7 @@ phpcredits(CREDITS_GENERAL); <?php - phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE); +phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE); ?> @@ -637,16 +637,16 @@ phpcredits(CREDITS_GENERAL); <html> - <head> - <title>My credits page</title> - </head> - <body> + <head> + <title>My credits page</title> + </head> + <body> <?php - // some code of your own - phpcredits(CREDITS_ALL + CREDITS_FULLPAGE); - // some more code - ?> - </body> + // some code of your own + phpcredits(CREDITS_ALL + CREDITS_FULLPAGE); + // some more code + ?> + </body> </html> @@ -654,56 +654,56 @@ phpcredits(CREDITS_GENERAL); - +
Pre-defined <function>phpcredits</function> flags - - name - description - + + name + description + - - CREDITS_ALL - - All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL + - CREDITS_GROUP + CREDITS_MODULES + CREDITS_FULLPAGE. It generates a - complete stand-alone HTML page with the appropriate tags. - - - - CREDITS_DOCS - The credits for the documentation team - - - CREDITS_FULLPAGE - - Usually used in combination with the other flags. - Indicates that the a complete stand-alone HTML page - needs to be printed including the information indicated - by the other flags. - - - - CREDITS_GENERAL - - General credits: Language design and concept, PHP 4.0 authors - and SAPI module. - - - - CREDITS_GROUP - A list of the core developers - - - CREDITS_MODULES - A list of the extension modules for PHP, and their authors - - - CREDITS_SAPI - This flag is defined but, as of PHP 4.0.1pl2, it is not used - + + CREDITS_ALL + + All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL + + CREDITS_GROUP + CREDITS_MODULES + CREDITS_FULLPAGE. It generates a + complete stand-alone HTML page with the appropriate tags. + + + + CREDITS_DOCS + The credits for the documentation team + + + CREDITS_FULLPAGE + + Usually used in combination with the other flags. + Indicates that the a complete stand-alone HTML page + needs to be printed including the information indicated + by the other flags. + + + + CREDITS_GENERAL + + General credits: Language design and concept, PHP 4.0 authors + and SAPI module. + + + + CREDITS_GROUP + A list of the core developers + + + CREDITS_MODULES + A list of the extension modules for PHP, and their authors + + + CREDITS_SAPI + A list of the server API modules for PHP, and their authors +
@@ -750,13 +750,6 @@ phpcredits(CREDITS_GENERAL); INFO_VARIABLES INFO_LICENSE INFO_ALL - CREDITS_GROUP - CREDITS_GENERAL - CREDITS_SAPI - CREDITS_MODULES - CREDITS_DOCS - CREDITS_FULLPAGE - CREDITS_ALL
@@ -852,11 +845,11 @@ echo "Current PHP version: ".phpversion(); <function>Php_sapi_name</function> Example -$inter_type = php_sapi_name(); -if ($inter_type == "cgi") - print "You are using CGI PHP\n"; +$sapi_type = php_sapi_name(); +if ($sapi_type == "cgi") + print "You are using CGI PHP\n"; else - print "You are not using CGI PHP\n"; + print "You are not using CGI PHP\n"; @@ -887,9 +880,9 @@ else <function>php_uname</function> Example if (substr(php_uname(), 0, 7) == "Windows") { - die("Sorry, this script doesn't run on Windows.\n"); + die("Sorry, this script doesn't run on Windows.\n"); } - + @@ -942,7 +935,7 @@ putenv ("UNIQID=$uniqid"); Set the current active configuration setting of magic_quotes_runtime. + linkend="ini.magic-quotes-runtime">magic_quotes_runtime. (0 for off, 1 for on) @@ -970,7 +963,7 @@ putenv ("UNIQID=$uniqid"); reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the configuration - file. If seconds is set to zero, no time limit is + file. If seconds is set to zero, no time limit is imposed. @@ -984,7 +977,7 @@ putenv ("UNIQID=$uniqid"); Note that set_time_limit has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the configuration file. + linkend="configuration.file">configuration file. @@ -1047,15 +1040,15 @@ Array [0] => xml [1] => wddx [2] => standard - [3] => session - [4] => posix - [5] => pgsql - [6] => pcre - [7] => gd - [8] => ftp - [9] => db - [10] => Calendar - [11] => bcmath + [3] => session + [4] => posix + [5] => pgsql + [6] => pcre + [7] => gd + [8] => ftp + [9] => db + [10] => Calendar + [11] => bcmath ) @@ -1091,7 +1084,7 @@ Array print_r (get_extension_funcs ("xml")); print_r (get_extension_funcs ("gd")); - + will print a list of the functions in the modules xml and gd respectively. @@ -1136,13 +1129,13 @@ require_once ("local.php"); require_once ("../inc/global.php"); for ($i=1; $i<5; $i++) - include "util".$i."php"; + include "util".$i."php"; -echo "Required_once files\n"; -print_r (get_required_files()); + echo "Required_once files\n"; + print_r (get_required_files()); -echo "Included_once files\n"; -print_r (get_included_files()); + echo "Included_once files\n"; + print_r (get_included_files()); ?> @@ -1152,8 +1145,8 @@ print_r (get_included_files()); Required_once files Array ( - [local] => local.php - [../inc/global] => /full/path/to/inc/global.php + [local] => local.php + [../inc/global] => /full/path/to/inc/global.php ) Included_once files @@ -1224,21 +1217,21 @@ Array - + - +