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

phpinfo

(PHP 4, PHP 5, PHP 7) Outputs information about PHP's configuration bool phpinfo ([ int $what = INFO_ALL ] ) Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration opti

phpcredits

(PHP 4, PHP 5, PHP 7) Prints out the credits for PHP bool phpcredits ([ int $flag = CREDITS_ALL ] ) This function prints out the credits listing the PHP developers, modules, etc. It generates the appropriate HTML codes to insert the information in a page. Parameters: flag To generate a custom credits page, you may want to use the flag parameter. Pre-defined phpcredits()

php_uname

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns information about the operating system PHP is running on string php_uname ([ string $mode = "a" ] ) php_uname() returns a description of the operating system PHP is running on. This is the same string you see at the very top of the phpinfo() output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will contain the operatin

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.

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

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.