MENU
PHP Options
phpinfo($i=INFO_ALL) outputs information about the PHP system, including the configuration options and EGPCS (Environment, GET, POST, Cookie, Server) data. $i can be INFO_GENERAL, INFO_ CREDITS, INFO_CONFIGURATION, INFO_MODULES, INFO_ENVIRONMENT, INFO_VARIABLES, INFO_ LICENSE, and INFO_ALL. ini_get($s) returns the value of the configuration option $s, or FALSE if the option does not exist. ini_set($s1,$s2) sets the value of the configuration option $s1 to be $s2. The configuration option will keep this new value during the script’s execution, and will be restored at the script’s ending. ini_restore($s) restores a given configuration option $s to its original value.set_time_limit($i) sets the number of seconds a script is allowed to run. The default is 30s or the value of ‘max_execution_time’ in php.ini.