Php options and configuration information

Source: Internet
Author: User
PHP extension options and configuration information. these functions allow you to obtain many PHP parameters, such as runtime configurations, loaded extensions, and versions. You will also find the function that sets the PHP option in your running state. The best PHP-function phpinfo () can be found here.

Options and information functions:

Assert_options-set/obtain various assertions

Assert-check whether an asserted is FALSE

Cli_get_process_title-return the current process Title

Cli_set_process_title-set the process Title

Dl-load a PHP extension at runtime

Extension_loaded-check whether an extension has been loaded

Gc_collect_cycles-forces collection of all existing garbage cycle

Gc_disable-disable the cyclic reference collector

Gc_enable-activate the cyclic reference collector

Gc_enabled-return the status of the cyclic reference counter

Get_cmd_var-get the PHP configuration option value

Get_current_user-get the name of the current PHP script owner

Get_defined_constants-returns the joined array of all constants. The key is the constant name and the value is the constant value.

Get_extension_funcs-returns the array of module function names

Get_include_path-get the current include_path configuration option

Get_included_files-returns the array with the names of include and require files.

Get_loaded_extensions-returns the array of all compiled and loaded module names.

Get_magic_quotes_gpc-get the current magic_quotes_gpc configuration option settings

Get_magic_quotes_runtime-obtains the activation status of the current magic_quotes_runtime configuration option.

Get_required_files-alias get_included_files

Getenv-get the value of an environment variable

Getlastmod-get the last modification time of the page

Getmygid-get the GID of the current PHP script owner

Getmyinode-get the index node (inode) of the current script)

Getmypid-get the PHP process ID

Getmyuid-get the UID of the PHP script owner

Getopt-get options from the command line parameter list

Getrusage-get current resource usage

Ini_alter-alias ini_set

Ini_get_all-get all configuration options

Ini_get-get the value of a configuration option

Ini_restore-value of the restore configuration option

Ini_set-set a value for a configuration option

Magic_quotes_runtime-alias set_magic_quotes_runtime

Main-virtual main

Memory_get_peak_usage-return the peak value allocated to the PHP memory.

Memory_get_usage-the amount of memory allocated to PHP is returned.

Php_ini_loaded_file-obtain the path of the loaded php. ini file

Php_ini_scanned_files-returns the List of. ini files parsed from the extra ini directory.

Php_logo_guid-get the guid of the logo

Php_sapi_name-return the interface type between the web server and PHP

Php_uname-return information about the system running PHP

Phpcredits-print the PHP contributor list

Phpinfo-output PHP configuration information

Phpversion-get the current PHP version

Putenv-set the environment variable value

Restore_include_path-restore the value of the include_path configuration option

Set_include_path-set the include_path configuration option

Set_magic_quotes_runtime-set the activation status of the current magic_quotes_runtime configuration option

Set_time_limit-set the maximum script execution time

Sys_get_temp_dir-return the directory used for temporary files

Version_compare-comparison of two "PHP normalization" version numeric strings

Zend_logo_guid-get Zend guid

Zend_thread_id-return the unique identifier of the current thread

Zend_version-get the current Zend Engine version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.