The PHP system class functions that programmers should know

Source: Internet
Author: User
As an experienced PHP programmer, know the following several PHP system-level functions, not enough! Get the System Information and debug the program should be able to use!

PHP System class functions

Assert function: Check assertion declaration for error extension_loaded function: Check if PHP extension is loading Get_cfg_var function: Get the value of PHP configuration option Get_current_ User function: Gets the name of the owner of the current PHP script Get_defined_constants function: Returns an array of PHP predefined constant information Get_extension_funcs function: Returns an array containing all the function names in the specified module Get_include_path function: Returns the current configuration of the file containing the information of the path Get_included_files function: Returns an array of information about the file contained Get_loaded_ Extensions function: Returns an array GET_MAGIC_QUOTES_GPC function that contains all the loading module information: Gets the MAGIC_QUOTES_GPC state information get_magic_quotes_runtime function: Get Magic _quotes_ Runtime state information Get_required_files function: Returns an array getenv function that contains information about a file: Gets the value of the PHP environment variable

PHP System class functions

Getlastmod function: Gets the last modified time of the current PHP paging file Getmygid function: Gets the GID number of the current PHP script page owner Getmyinode function: Gets the inode number of the current PHP script page Getmypid function: Gets the PHP pid getmyuid function: Gets the UID number of the PHP script page owner getopt function: Gets the setting getrusage function from the command line argument list: Gets the current resource syntax ini_get_ All function: Get all configuration options Ini_get function: Gets the value of the configuration option Memory_get_usage function: Returns the memory space used by the PHP script Php_ini_scanned_files function: Returns a list of configuration files under the profile directory Php_ Logo_guid function: Get the logo image GUID Php_sapi_name function: Get the interface type Php_uname function between PHP and Web server: Get the operating System information of PHP script running Phpcredits function: Print credits list phpinfo function: output PHP information phpversion function: Get PHP version zend_logo_guid function: Get Zend Logo image guid Zend_ Version function: Gets the versions of the Zend engine

PHP Configuration class functions

assert_options function: Set or get a different declaration token Ini_alter function: Set the value of the PHP configuration option Ini_restore function: Restore the value of the configuration option Ini_set function: Set the value of the PHP configuration option putenv function: Set environment variable Restore_include_path function: Recover file contains path configuration information Set_include_path function: Set file include path configuration option Set_magic_quotes_ Runtime function: Set Magic_quotes run time set_time_limit function: Set maximum execution time

Other class functions

DL function: Load PHP Extension Module main function: Just a nominal main () function Version_compare function: Compare PHP two version values

Related Article

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.