phpversion

(PHP 4, PHP 5, PHP 7) Gets the current PHP version string phpversion ([ string $extension ] ) Returns a string containing the version of the currently running PHP parser or extension. Parameters: extension An optional extension name. Returns: If the optional extension parameter is specified, phpversion() returns the version of that extension, or

restore_include_path

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Restores the value of the include_path configuration option void restore_include_path ( void ) Restores the include_path configuration option back to its original master value as set in php.ini Returns: No value is returned. Examples: restore_include_path() example <?php echo get_inc

putenv

(PHP 4, PHP 5, PHP 7) Sets the value of an environment variable bool putenv ( string $setting ) 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

memory_get_peak_usage

(PHP 5 >= 5.2.0, PHP 7) Returns the peak of memory allocated by PHP int memory_get_peak_usage ([ bool $real_usage = false ] ) Returns the peak of memory, in bytes, that's been allocated to your PHP script. Parameters: real_usage Set this to TRUE to get the real size of memory allocated from system. If not set or FALSE only the memory used by emalloc() is reported.

php_sapi_name

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Returns the type of interface between web server and PHP string php_sapi_name ( void ) Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed below. Retu

php_logo_guid

(PHP 4, PHP 5 < 5.5) Gets the logo guid string php_logo_guid ( void ) This function returns the ID which can be used to display the PHP logo using the built-in image. Logo is displayed only if expose_php is On. Returns: Returns PHPE9568F34-D428-11d2-A769-00AA001ACF42. This function has been DEPRECATED and REMOVED as of PHP 5.5.0.

main

Dummy for main() There is no function named main() except in the PHP source. In PHP 4.3.0, a new type of error handling in the PHP source (php_error_docref) was introduced. One feature is to provide links to a manual page in PHP error messages when the PHP directives html_errors (on by default) and docref_root (on by default until PHP 4.3.2) are set. Sometimes error messages refer to a manual page for the function main() which is why this page exists. If you di

php_ini_scanned_files

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Return a list of .ini files parsed from the additional ini dir string php_ini_scanned_files ( void ) php_ini_scanned_files() returns a comma-separated list of configuration files parsed after php.ini. The directories searched are set by a compile time option and, optionally, by an environment variable at run time: more information can be found in the installation guide. The returned config

php_ini_loaded_file

(PHP 5 >= 5.2.4, PHP 7) Retrieve a path to the loaded php.ini file string php_ini_loaded_file ( void ) Check if a php.ini file is loaded, and retrieve its path. Returns: The loaded php.ini path, or FALSE if one is not loaded. Examples: php_ini_loaded_file() example <?php $inipath = php_ini_loaded_file(); if ($inipa

memory_get_usage

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Returns the amount of memory allocated to PHP int memory_get_usage ([ bool $real_usage = false ] ) Returns the amount of memory, in bytes, that's currently being allocated to your PHP script. Parameters: real_usage Set this to TRUE to get total memory allocated from system, including unused pages. If not set or FALSE only the used memory