php get_cfg_var 取得 PHP 的配置
取得 php教程 的配置选项值。
语法: string get_cfg_var(string varname);
返回值: 字符串
函数种类: php 系统功能
内容说明
若正确取得目前 php 配置选项 varname,则返回变量值。失败则返回 false。
*/
echo "php设置的最大执行时间为:n";
print_r(get_cfg_var("max_execution_time")); //获得配置项的值
echo "
n";
echo "php设置的每个脚本的可使用内存总量为:n";
print_r(get_cfg_var("memory_limit")); //获得配置项的值
echo "
n";
echo "php设置的接受post的最大大小为:n";
print_r(get_cfg_var("post_max_size")); //获得配置项的值
echo "
n";
echo "php设置smtp服务器名为:n";
print_r(get_cfg_var("smtp")); //获得配置项的值
echo "
n";
echo "php设置的上传文件的最大大小为:n";
print_r(get_cfg_var("upload_max_filesize")); //获得配置项的值
echo "
n";

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment
