F.29. PHP Options and Info
Function | Returns | Description |
---|---|---|
assert(string|bool assertion) | int | Checks if assertion is false. |
assert_options(int what [, mixed value]) | mixed | Sets/gets the various assert flags. |
phpinfo([int what]) | void | Outputs a page of useful information about PHP and the current request. |
phpversion([string extension]) | string | Returns the current PHP version. |
phpcredits([int flag]) | void | Prints the list of people who've contributed to the PHP project. |
php_logo_guid(void) | string | Returns the special ID used to request the PHP logo in phpinfo screens. |
php_real_logo_guid(void) | string | Returns the special ID used to request the PHP logo in phpinfo screens. |
php_egg_logo_guid(void) | string | Returns the special ID used to request the PHP logo in phpinfo screens. |
zend_logo_guid(void) | string | Returns the special ID used to request the Zend logo in phpinfo screens. |
php_sapi_name(void) | string | Returns the current SAPI module name. |
php_uname(void) | string | Returns information about the system PHP was built on. |
php_ini_scanned_files(void) | string | Returns comma-separated string of .ini files parsed from the additional ini dir. |
getmyuid(void) | int | Gets PHP script owners UID. |
getmygid(void) | int | Gets PHP script owners GID. |
getmypid(void) | int | Gets current process ID. |
getmyinode(void) | int | Gets the inode of the current script being parsed. |
getlastmod(void) | int | Gets time of last page modification. |
set_time_limit(int seconds) | bool | Sets the maximum time a script can run. |
ini_get(string varname) | string | Gets a configuration ... |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.