diff --git a/reference/info/functions/dl.xml b/reference/info/functions/dl.xml index 7c642490e8..433a4398a9 100644 --- a/reference/info/functions/dl.xml +++ b/reference/info/functions/dl.xml @@ -1,5 +1,5 @@ - + @@ -82,7 +82,7 @@ if (!extension_loaded('gd')) { Taking into account the above, the directory then defaults to - <php-install-directory>/lib/php/extension/<debug-or-not>-<zts-or-not>-ZEND_MODULE_API_NO, + <install-dir>/lib/php/extensions/ <debug-or-not>-<zts-or-not>-ZEND_MODULE_API_NO, e.g. /usr/local/php/lib/php/extensions/debug-non-zts-20010901 or diff --git a/reference/info/functions/get-defined-constants.xml b/reference/info/functions/get-defined-constants.xml index dd8f5eb848..2b798cd9ad 100644 --- a/reference/info/functions/get-defined-constants.xml +++ b/reference/info/functions/get-defined-constants.xml @@ -1,5 +1,5 @@ - + @@ -22,17 +22,19 @@ function. - For example the line below + For example the line below: - + ]]> - - will print a list like: - - + + will print a list like: + + 1 ) ]]> - + diff --git a/reference/info/functions/get-extension-funcs.xml b/reference/info/functions/get-extension-funcs.xml index ee6aa48ba6..53abfd17d3 100644 --- a/reference/info/functions/get-extension-funcs.xml +++ b/reference/info/functions/get-extension-funcs.xml @@ -1,5 +1,5 @@ - + @@ -23,13 +23,17 @@ ]]> + + will print a list of the functions in the modules + xml and gd respectively. + - will print a list of the functions in the modules - xml and gd respectively. See also: get_loaded_extensions diff --git a/reference/info/functions/get-include-path.xml b/reference/info/functions/get-include-path.xml index d9661dbda5..3cfd2c4fd4 100644 --- a/reference/info/functions/get-include-path.xml +++ b/reference/info/functions/get-include-path.xml @@ -1,5 +1,5 @@ - + get_include_path @@ -19,7 +19,7 @@ - Example use of <function>get_include_path</function> + <function>get_include_path</function> example - + @@ -32,7 +32,7 @@ - <function>get_included_files</function> Example + <function>get_included_files</function> example ]]> - - will generate the following output: - - + + will generate the following output: + + - - + + diff --git a/reference/info/functions/get-loaded-extensions.xml b/reference/info/functions/get-loaded-extensions.xml index 8db5202d6d..a24a885999 100644 --- a/reference/info/functions/get-loaded-extensions.xml +++ b/reference/info/functions/get-loaded-extensions.xml @@ -1,5 +1,5 @@ - + @@ -25,14 +25,14 @@ ]]> - - will print a list like: - - + + will print a list like: + + bcmath ) ]]> - + diff --git a/reference/info/functions/get-magic-quotes-gpc.xml b/reference/info/functions/get-magic-quotes-gpc.xml index 3c335ae782..00156f6d30 100644 --- a/reference/info/functions/get-magic-quotes-gpc.xml +++ b/reference/info/functions/get-magic-quotes-gpc.xml @@ -1,5 +1,5 @@ - + @@ -36,7 +36,7 @@ - Example use of <function>get_magic_quotes_gpc</function> + <function>get_magic_quotes_gpc</function> example - + @@ -16,9 +16,11 @@ Returns the value of the environment variable varname, or &false; on an error. - + ]]> @@ -29,6 +31,8 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user mean by taking a look at the CGI specification, specifically the page on environmental variables. + + This function does not work in ISAPI mode. diff --git a/reference/info/functions/getlastmod.xml b/reference/info/functions/getlastmod.xml index ac94fbede4..4615f26b77 100644 --- a/reference/info/functions/getlastmod.xml +++ b/reference/info/functions/getlastmod.xml @@ -1,5 +1,5 @@ - + @@ -16,8 +16,10 @@ 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. + + - getlastmod() example + <function>getlastmod</function> example - + getopt @@ -15,10 +15,15 @@ Returns an associative array of option / argument pairs based on the options format specified in options, or &false; on an error. + + ]]> @@ -36,7 +41,7 @@ $options = getopt("f:hp:"); // parse the command line ($GLOBALS['argv']) This function will return an array of option / argument pairs. If an option does not have an argument, the value will be set to &false;. - This function is currently not available on Windows + ¬e.no-windows; diff --git a/reference/info/functions/getrusage.xml b/reference/info/functions/getrusage.xml index 3b4a21b37e..8dbb34ee0a 100644 --- a/reference/info/functions/getrusage.xml +++ b/reference/info/functions/getrusage.xml @@ -1,5 +1,5 @@ - + @@ -19,15 +19,19 @@ All entries are accessible by using their documented field names. + + - Getrusage Example + <function>getrusage</function> example ]]> diff --git a/reference/info/functions/ini-get-all.xml b/reference/info/functions/ini-get-all.xml index ba3ef2d1d0..f15edc7e98 100644 --- a/reference/info/functions/ini-get-all.xml +++ b/reference/info/functions/ini-get-all.xml @@ -1,5 +1,5 @@ - + @@ -28,7 +28,6 @@ for information on what access levels mean. - Access level note: It's possible for a directive to have multiple access levels, which is why access shows the appropriate bitmask values. diff --git a/reference/info/functions/php-ini-scanned-files.xml b/reference/info/functions/php-ini-scanned-files.xml index 9229c4ba90..dafd1f96ca 100644 --- a/reference/info/functions/php-ini-scanned-files.xml +++ b/reference/info/functions/php-ini-scanned-files.xml @@ -1,5 +1,5 @@ - + php_ini_scanned_files @@ -12,24 +12,25 @@ - php_ini_scanned_files returns a comma-separated - list of configuration files parsed after &php.ini;. These files are found - in a directory defined by the --with-config-file-scan-dir. - option which is set during compilation. + php_ini_scanned_files returns a comma-separated + list of configuration files parsed after &php.ini;. These files are + found in a directory defined by the + --with-config-file-scan-dir. option which is set + during compilation. - Returns a comma-separated string of .ini files on success. If - the directive --with-config-files-scan-dir wasn't - set, &false; is returned. If it was set and the directory was empty, - an empty string is returned. If a file is unreconizable, the file - will still make it into the returned string but a PHP error will - also result. This PHP error will be seen both at compile time and - while using php_ini_scanned_files. + Returns a comma-separated string of .ini files on success. If the + directive --with-config-files-scan-dir wasn't set, + &false; is returned. If it was set and the directory was empty, an + empty string is returned. If a file is unreconizable, the file will + still make it into the returned string but a PHP error will also result. + This PHP error will be seen both at compile time and while using + php_ini_scanned_files. - The returned configuration files also include the path as declared - in the --with-config-file-scan-dir directive. Also, - each comma is followed by a newline. + The returned configuration files also include the path as declared in + the --with-config-file-scan-dir directive. Also, each + comma is followed by a newline. @@ -37,13 +38,10 @@ 0) { - $files = explode(',', $filelist); - + foreach ($files as $file) { echo "
  • " . trim($file) . "
  • \n"; } @@ -55,8 +53,7 @@ if ($filelist = php_ini_scanned_files()) {
    - See also ini_set - and phpinfo. + See also ini_set and phpinfo.
    diff --git a/reference/info/functions/php-logo-guid.xml b/reference/info/functions/php-logo-guid.xml index d9edaed553..4f1e5c4c8e 100644 --- a/reference/info/functions/php-logo-guid.xml +++ b/reference/info/functions/php-logo-guid.xml @@ -1,5 +1,5 @@ - + @@ -12,11 +12,10 @@ stringphp_logo_guid - - - This functionality was added in PHP 4.0.0. - - + + This function returns the ID which can be used to display the PHP logo + using the built-in image. + See also phpinfo, diff --git a/reference/info/functions/php-sapi-name.xml b/reference/info/functions/php-sapi-name.xml index a8a8e03b4a..90192c695f 100644 --- a/reference/info/functions/php-sapi-name.xml +++ b/reference/info/functions/php-sapi-name.xml @@ -1,5 +1,5 @@ - + @@ -22,7 +22,7 @@ - <function>php_sapi_name</function> Example + <function>php_sapi_name</function> example - + @@ -20,7 +20,7 @@ - <function>php_uname</function> Example + <function>php_uname</function> example - + @@ -20,17 +20,23 @@ To generate a custom credits page, you may want to use the flag parameter. For example to print the general credits, you will use somewhere in your code: + + ]]> + + And if you want to print the core developers and the documentation group, in a page of its own, you will use: + + + + And if you feel like embedding all the credits in your page, then code like the one below will do it: + + - - Pre-defined <function>phpcredits</function> flags diff --git a/reference/info/functions/phpinfo.xml b/reference/info/functions/phpinfo.xml index 3ae9053e93..0a272b9adf 100644 --- a/reference/info/functions/phpinfo.xml +++ b/reference/info/functions/phpinfo.xml @@ -1,5 +1,5 @@ - + @@ -37,7 +37,8 @@ One can also combine the respective constants or bitwise values together with the or operator. - + +
    <function>phpinfo</function> options diff --git a/reference/info/functions/putenv.xml b/reference/info/functions/putenv.xml index c7d99a1165..156a771d27 100644 --- a/reference/info/functions/putenv.xml +++ b/reference/info/functions/putenv.xml @@ -1,5 +1,5 @@ - + @@ -13,29 +13,27 @@ stringsetting - Adds setting to the server environment. - The environment variable will only exist for the duration of the - current request. At the end of the request the environment is - restored to its original state. + Adds setting to the server environment. The + environment variable will only exist for the duration of the current + request. At the end of the request the environment is restored to its + original state. - Setting certain environment variables may be a potential security - breach. The safe_mode_allowed_env_vars - directive contains a comma-delimited list of prefixes. In Safe - Mode, the user may only alter environment variables whose names - begin with the prefixes supplied by this directive. By default, - users will only be able to set environment variables that begin - with PHP_ - (e.g. PHP_FOO=BAR). Note: if this directive is - empty, PHP will let the user modify ANY environment variable! + Setting certain environment variables may be a potential security breach. + The safe_mode_allowed_env_vars directive contains a + comma-delimited list of prefixes. In Safe Mode, the user may only alter + environment variables whose names begin with the prefixes supplied by + this directive. By default, users will only be able to set environment + variables that begin with PHP_ (e.g. + PHP_FOO=BAR). Note: if this directive is empty, PHP + will let the user modify ANY environment variable! - The safe_mode_protected_env_vars directive - contains a comma-delimited list of environment variables, that - the end user won't be able to change using - putenv. These variables will be protected - even if safe_mode_allowed_env_vars is set to - allow to change them. + The safe_mode_protected_env_vars directive contains a + comma-delimited list of environment variables, that the end user won't be + able to change using putenv. These variables will + be protected even if safe_mode_allowed_env_vars is set + to allow to change them. @@ -45,7 +43,7 @@ - Setting an Environment Variable + Setting an environment variable - + restore_include_path @@ -20,7 +20,7 @@ - Example use of <function>restore_include_path</function> + <function>restore_include_path</function> example - + set_include_path @@ -21,7 +21,7 @@ - Example use of <function>set_include_path</function> + <function>set_include_path</function> example - + @@ -60,15 +60,17 @@ - <function>version_compare</function> Example + <function>version_compare</function> example ]]> diff --git a/reference/info/functions/zend-logo-guid.xml b/reference/info/functions/zend-logo-guid.xml index dee4e3e666..5c5b314e0b 100644 --- a/reference/info/functions/zend-logo-guid.xml +++ b/reference/info/functions/zend-logo-guid.xml @@ -1,5 +1,5 @@ - + @@ -12,11 +12,10 @@ stringzend_logo_guid - - - This functionality was added in PHP 4.0.0. - - + + This function returns the ID which can be used to display the Zend logo + using the built-in image. + diff --git a/reference/info/functions/zend-version.xml b/reference/info/functions/zend-version.xml index 341fd4d06f..f3b349e9fc 100644 --- a/reference/info/functions/zend-version.xml +++ b/reference/info/functions/zend-version.xml @@ -1,5 +1,5 @@ - + @@ -14,9 +14,11 @@ Returns a string containing the version of the currently running - PHP parser. + Zend Engine. + + - <function>zend_version</function> Example + <function>zend_version</function> example