Get the configuration option value of php tutorial.
Syntax: string get_cfg_var(string varname);
Return value: String
Function type: php system function
Content Description
If the current php configuration option varname is obtained correctly, the variable value will be returned. Returns false on failure.
*/
echo "The maximum execution time set by php is: n";
print_r(get_cfg_var("max_execution_time")); //Get the value of the configuration item
echo "
n";
echo "The total available memory for each script set by php is: n";
print_r(get_cfg_var("memory_limit")); //Get the value of the configuration item
echo "
n";
echo "The maximum size of accepted posts set by php is: n";
print_r(get_cfg_var("post_max_size")); //Get the value of the configuration item
echo "
n";
echo "php sets the smtp server name: n";
print_r(get_cfg_var("smtp")); //Get the value of the configuration item
echo "
n";
echo "The maximum size of uploaded files set by php is: n";
print_r(get_cfg_var("upload_max_filesize")); //Get the value of the configuration item
echo "
n";