Home > php教程 > php手册 > php中php.ini-dist和php.ini-recommended文件区别

php中php.ini-dist和php.ini-recommended文件区别

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:10:57
Original
1583 people have browsed it

在php解压包文件中我们地发现有两个php.ini文件,php.ini-dist和php.ini-recommended了,那么这两个文件使用 是什么呢,下面我来给大家简单介绍

在Windows下安装PHP,通常要将php.ini-dist或php.ini-recommended重命名为php.ini。根据说明,二者不同之处

在于 php.ini-dist 适合开发程式使用(测试用),而 php.ini-recommended 拥有较高的安全性设定,则适合上线

当产品使用。我一般将php.ini-recommended修改为php.ini,确保测试环境(本地)与正式环境(线上)一致。

PHP5.3.1版本中,找不到网上介绍的php5.ini-dist(php.ini-recommended)


由于版本更新,这些文件有了新的命名:php.ini-production对应于php.ini-recommendedphp.ini-development对应

于php.ini-dist其他步骤还是一样,配置文件还是要修改的,比如说路径之类的.

source:php.cn
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