Introduction to common Output and ptions/Info function sets in php

Source: Internet
Author: User
This article provides a detailed analysis of common Output and ptionsInfo function sets in php. For more information, see

This article provides a detailed analysis of common Output and ptions/Info function sets in php. For more information, see

Flush function: refreshes the output buffer.
Ob_clean function: clears the output buffer.
Ob_end_clean function: clears the buffer and disables the ongoing output buffer.
Ob_end_flush function: sends buffer data and closes the buffer.
Ob_flush function: Send buffer data
Ob_get_clean function: gets the buffer content and ends the buffer.
Ob_get_contents function: Get buffer data
Ob_get_flush function: refreshes the buffer data, returns the data, and disables the buffer.
Ob_get_length function: obtains the buffer length.
Ob_get_level function: obtains the buffer level.
Ob_get_status function: obtains the buffer status.
Ob_gzhandler function: the callback function used by ob_start to compress the output buffer.
Ob_implicit_flush function: enable or disable the original output buffer.
Ob_list_handlers function: lists all output handles used.
Ob_start function: Open the buffer
Output_add_rewrite_var function: add the URL rewrite Value
Output_reset_rewrite_vars function: resets the URL rewrite value.

PHP Information Retrieval Class Functions
Assert function: Check whether the assertion declaration is correct.
Extension_loaded function: checks whether PHP extensions are loaded.
Get_cfg_var function: obtains the value of the PHP configuration option.
Get_current_user function: obtains the name of the owner of the current PHP script.
Get_defined_constants function: returns an array containing the predefined PHP constants.
Get_extension_funcs function: returns an array containing all function names in the specified module.
Get_include_path function: returns information about the path contained in the current configuration file.
Get_included_files function: returns an array of file information.
Get_loaded_extensions function: returns an array containing information about all load modules.
Get_magic_quotes_gpc function: obtains the status information of magic_quotes_gpc.
Get_magic_quotes_runtime function: obtains the status information of magic_quotes _ runtime.
Get_required_files function: returns an array of file information.
Getenv function: Get the PHP environment variable value
Getlastmod function: Get the last modification time of the current PHP page file
Getmygid function: obtains the GID Number of the current PHP script page owner.
Getmyinode function: gets the INODE Number of the current PHP script page.
Getmypid function: Get the PHP PID
Getmyuid function: obtains the UID Number of the PHP script page owner.
Getopt function: Get settings from the command line parameter list
Getrusage function: Get the current resource syntax
Ini_get_all function: gets all configuration options
Ini_get function: gets the value of configuration options.
Memory_get_usage function: returns the memory space occupied by the PHP script.
Php_ini_scanned_files function: returns the configuration file list under the configuration file directory.
Php_logo_guid function: obtains the GUID of the LOGO image.
Php_sapi_name function: gets the interface type between PHP and Web Server
Php_uname function: obtains the operating system information of PHP scripts.
Phpcredits function: print the credits list
Phpinfo function: outputs PHP information.
Phpversion function: Get PHP version
Zend_logo_guid function: obtains the GUID of the zend logo image.
Zend_version function: gets the ZEND engine version.

PHP configuration functions
Assert_options function: sets or obtains different declaration tags.
Ini_alter function: set the value of the PHP configuration option.
Ini_restore function: restores the value of the configuration option.
Ini_set function: set the value of the PHP configuration option.
Putenv function: Set Environment Variables
Restore_include_path function: restores the file containing path configuration information.
Set_include_path function: sets the file inclusion path configuration options.
Set_magic_quotes_runtime function: sets the magic_quotes runtime.
Set_time_limit function: sets the maximum execution time.
Dl function: load the PHP extension module
Main function: it is only a main () function with a name.
Version_compare function: compare two PHP version values

, U.S. server, Hong Kong Server rental, U.S. Server

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.