From 0f44bdbf60249d86ff9f25b7f1f8234bd579733b Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sun, 11 Nov 2001 12:13:02 +0000 Subject: [PATCH] Moving things around, to get alphabetical order git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61975 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 528 ++++++++++++++++++++++----------------------- 1 file changed, 262 insertions(+), 266 deletions(-) diff --git a/functions/info.xml b/functions/info.xml index 268a345f52..3c2fce4338 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -1,5 +1,5 @@ - + PHP options & information PHP options/info @@ -328,6 +328,229 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user + + + get_defined_constants + + Returns an associative array with the names of all the constants + and their values. + + + + Description + + + array get_defined_constants + + + + + This function returns the names and values of all the constants + currently defined. This includes those created by extensions as + well as those created with the define + function. + + + For example the line below + + +print_r (get_defined_constants()); + + + will print a list like: + + +Array +( + [E_ERROR] => 1 + [E_WARNING] => 2 + [E_PARSE] => 4 + [E_NOTICE] => 8 + [E_CORE_ERROR] => 16 + [E_CORE_WARNING] => 32 + [E_COMPILE_ERROR] => 64 + [E_COMPILE_WARNING] => 128 + [E_USER_ERROR] => 256 + [E_USER_WARNING] => 512 + [E_USER_NOTICE] => 1024 + [E_ALL] => 2047 + [TRUE] => 1 +) + + + + + See also + get_loaded_extensions. + + + + + + + get_extension_funcs + + Returns an array with the names of the functions of a module + + + + Description + + + array get_extension_funcs + string module_name + + + + This function returns the names of all the functions defined in + the module indicated by module_name. + + + For example the lines below + + +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. + + + See also: get_loaded_extensions + + + + + + + get_included_files + + Returns an array with the names of included or required files + + + + Description + + + array get_included_files + + + + + Returns an array of the names of all files that have been + included using include, + include_once, require + or require_once. + + + Files that are included or required multiple times only show up + once in the returned array. + + + + <function>get_included_files</function> Example + +<?php + +include("test1.php"); +include_once("test2.php"); +require("test3.php"); +require_once("test4.php"); + +$included_files = get_included_files(); + +foreach($included_files as $filename) { + echo "$filename\n"; +} + +?> + + + will generate the following output: + + +test1.php +test2.php +test3.php +test4.php + + + + + + In PHP 4.0.1pl2 and previous versions + get_included_files assumed that the + required files ended in the extension .php; + other extensions would not be returned. The array returned by + get_included_files was an associative array + and only listed files included by include + and include_once. + + + + See also: include, + include_once, require, + require_once and + get_required_files. + + + + + + + get_loaded_extensions + + Returns an array with the names of all modules compiled and + loaded + + + + Description + + + array get_loaded_extensions + + + + + This function returns the names of all the modules compiled and + loaded in the PHP interpreter. + + + For example the line below + + +print_r (get_loaded_extensions()); + + + will print a list like: + + +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 +) + + + + + See also: get_extension_funcs. + + + + get_magic_quotes_gpc @@ -442,11 +665,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); getmypid, and getlastmod. - - - This function is not supported on Windows systems. - - + ¬e.no.windows; @@ -507,6 +726,43 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); + + + get_required_files + + Returns an array with the names of included or required files + + + + Description + + + array get_required_files + + + + + As of PHP 4.0.4, this function is an alias for + get_included_files + + + In PHP 4.0.1pl2 and previous versions + get_required_files assumed that the required + files ended in the extension .php, other + extensions would not be returned. The array returned by + get_required_files was an associative array + and only listed files included by require and + require_once. + + + See also: require, + require_once, include, + include_once and + get_included_files. + + + + getrusage @@ -1490,266 +1746,6 @@ putenv ("UNIQID=$uniqid"); - - - get_defined_constants - - Returns an associative array with the names of all the constants - and their values. - - - - Description - - - array get_defined_constants - - - - - This function returns the names and values of all the constants - currently defined. This includes those created by extensions as - well as those created with the define - function. - - - For example the line below - - -print_r (get_defined_constants()); - - - will print a list like: - - -Array -( - [E_ERROR] => 1 - [E_WARNING] => 2 - [E_PARSE] => 4 - [E_NOTICE] => 8 - [E_CORE_ERROR] => 16 - [E_CORE_WARNING] => 32 - [E_COMPILE_ERROR] => 64 - [E_COMPILE_WARNING] => 128 - [E_USER_ERROR] => 256 - [E_USER_WARNING] => 512 - [E_USER_NOTICE] => 1024 - [E_ALL] => 2047 - [TRUE] => 1 -) - - - - - See also - get_loaded_extensions. - - - - - - - get_loaded_extensions - - Returns an array with the names of all modules compiled and - loaded - - - - Description - - - array get_loaded_extensions - - - - - This function returns the names of all the modules compiled and - loaded in the PHP interpreter. - - - For example the line below - - -print_r (get_loaded_extensions()); - - - will print a list like: - - -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 -) - - - - - See also: get_extension_funcs. - - - - - - - get_extension_funcs - - Returns an array with the names of the functions of a module - - - - Description - - - array get_extension_funcs - string module_name - - - - This function returns the names of all the functions defined in - the module indicated by module_name. - - - For example the lines below - - -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. - - - See also: get_loaded_extensions - - - - - - - get_required_files - - Returns an array with the names of included or required files - - - - Description - - - array get_required_files - - - - - As of PHP 4.0.4, this function is an alias for - get_included_files - - - In PHP 4.0.1pl2 and previous versions - get_required_files assumed that the required - files ended in the extension .php, other - extensions would not be returned. The array returned by - get_required_files was an associative array - and only listed files included by require and - require_once. - - - See also: require, - require_once, include, - include_once and - get_included_files. - - - - - - - get_included_files - - Returns an array with the names of included or required files - - - - Description - - - array get_included_files - - - - - Returns an array of the names of all files that have been - included using include, - include_once, require - or require_once. - - - Files that are included or required multiple times only show up - once in the returned array. - - - - <function>get_included_files</function> Example - -<?php - -include("test1.php"); -include_once("test2.php"); -require("test3.php"); -require_once("test4.php"); - -$included_files = get_included_files(); - -foreach($included_files as $filename) { - echo "$filename\n"; -} - -?> - - - will generate the following output: - - -test1.php -test2.php -test3.php -test4.php - - - - - - In PHP 4.0.1pl2 and previous versions - get_included_files assumed that the - required files ended in the extension .php; - other extensions would not be returned. The array returned by - get_included_files was an associative array - and only listed files included by include - and include_once. - - - - See also: include, - include_once, require, - require_once and - get_required_files. - - - - zend_version