F.29. PHP Options and Info

FunctionReturnsDescription
assert(string|bool assertion)
intChecks if assertion is false.
assert_options(int what [, mixed value])
mixedSets/gets the various assert flags.
phpinfo([int what])
voidOutputs a page of useful information about PHP and the current request.
phpversion([string extension])
stringReturns the current PHP version.
phpcredits([int flag])
voidPrints the list of people who've contributed to the PHP project.
php_logo_guid(void)
stringReturns the special ID used to request the PHP logo in phpinfo screens.
php_real_logo_guid(void)
stringReturns the special ID used to request the PHP logo in phpinfo screens.
php_egg_logo_guid(void)
stringReturns the special ID used to request the PHP logo in phpinfo screens.
zend_logo_guid(void)
stringReturns the special ID used to request the Zend logo in phpinfo screens.
php_sapi_name(void)
stringReturns the current SAPI module name.
php_uname(void)
stringReturns information about the system PHP was built on.
php_ini_scanned_files(void)
stringReturns comma-separated string of .ini files parsed from the additional ini dir.
getmyuid(void)
intGets PHP script owners UID.
getmygid(void)
intGets PHP script owners GID.
getmypid(void)
intGets current process ID.
getmyinode(void)
intGets the inode of the current script being parsed.
getlastmod(void)
intGets time of last page modification.
set_time_limit(int seconds)
boolSets the maximum time a script can run.
ini_get(string varname)
stringGets 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.