php get_cfg_var Get PHP configuration

Source: Internet
Author: User
Keywords Network programming PHP tutorial
Tags configuration echo function get get_cfg_var network network programming php

Obtain php tutorial configuration option value.

Syntax: string get_cfg_var (string varname);

Return Value: String

Function types: php system function content description

If the correct php configuration options varname, it returns the value of the variable. If it fails, it returns false.

* /
Echo "php set the maximum execution time: n";
print_r (get_cfg_var ("max_execution_time")); // get the value of the configuration item
echo "<br> n";
Echo "php set the total amount of memory available for each script: n";
print_r (get_cfg_var ("memory_limit")); // Get the value of the configuration item
echo "<br> n";
echo "php set to accept the maximum size of post: n";
print_r (get_cfg_var ("post_max_size")); // get the value of the configuration item
echo "<br> n";
Echo "php set smtp server name: n";
print_r (get_cfg_var ("smtp")); // Get the value of the configuration item
echo "<br> n";
echo "php set the maximum size of the uploaded file: n";
print_r (get_cfg_var ("upload_max_filesize")); // get the value of the configuration item
echo "<br> n";

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.