3', PHPWEB:'php.cn', settings:'settings', FullScreen:'Full Screen', Speed:'Speed', BrainwashingLoop:'Loop', speedNormal:'Normal', click_to_see:'Click to see full code for direct edit', nextSection:'Next Section', Cancel:'Cancel', Confirm:'Confirm', all_lang_string:'zh|en|zh-tw|ja|ko|ms|fr|de', Next:'Next', Previous:'Previous', };
Home > php教程 > php手册 > php中的ini

php中的ini

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 19:50:56
Original
1497 people have browsed it

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 语法: string ini_get ( string varname ) 返回值如果为布尔型则为0或1 以下为引用的内容: ?php echo 'display_errors = ' . ini_get('display_errors') . "\n"; echo 'register_globals = ' . ini_

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  语法:

  string ini_get ( string varname )

  返回值如果为布尔型则为0或1

  以下为引用的内容:

  

  echo 'display_errors = ' . ini_get('display_errors') . "\n";

  echo 'register_globals = ' . ini_get('register_globals') . "\n";

  echo 'post_max_size = ' . ini_get('post_max_size') . "\n";

  echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n";

  echo 'post_max_size in bytes = ' . return_bytes(ini_get('post_max_size'));

  ?>

  如果想获取整个php.ini里的变量值,我们可以用ini_get的加强函数 ini_get_all()

  ini_get_all()函数以数组的形式返回整个php的环境变量

  用法也很简单

  以下为引用的内容:

  

  $ini = ini_get_all();

  print_r($ini);

  ?>

  当然如果你只是想想php的配置信息用phpinfo()更方便

php中的ini

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template