Php get_cmd_var obtains the PHP configuration.

Source: Internet
Author: User

Obtain the configuration option value of the php tutorial.

Syntax: string get_cfg_var (string varname );

Return Value: String

Function types: php system functions
Description

If the current php configuration option varname is obtained correctly, the variable value is returned. Otherwise, false is returned.

 

*/
Echo "php sets the maximum execution time to: n ";
Print_r (get_cfg_var ("max_execution_time"); // obtain the configuration item Value
Echo "<br> n ";
Echo "the total memory available for each script set by php is: n ";
Print_r (get_1__var ("memory_limit"); // obtain the configuration item Value
Echo "<br> n ";
Echo "php sets the maximum size of post accepted: n ";
Print_r (get_cfg_var ("post_max_size"); // obtain the configuration item Value
Echo "<br> n ";
Echo "php sets smtp server name: n ";
Print_r (get_cmd_var ("smtp"); // obtain the configuration item Value
Echo "<br> n ";
Echo "php sets the maximum size of the uploaded file to be: n ";
Print_r (get_cfg_var ("upload_max_filesize"); // obtain the configuration item Value
Echo "<br> n ";

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.