What are the two configuration files of php?

藏色散人
Release: 2023-02-26 20:10:01
Original
4367 people have browsed it

What are the two configuration files of php?

What are the two configuration files of php?

PHP configuration files are generally php.ini files and httpd.conf files.

php.ini file must be named 'php.ini' and placed in the directory specified by the PHPiniDir directive in httpd.conf. It can be viewed using the phpinfo() function. If no modifications are made, it is generally placed in the PHP installation directory under the Windows platform.

PHP is still an evolving tool, and its functions are constantly being deleted, and changes in the settings of php.ini can reflect considerable changes. Before using a new PHP version, study php.ini There will be benefits.

Recommended: "PHP Tutorial"

The following is a brief introduction to the basic configuration of php.ini:

directive = value ; 指示标识符 是 *大小写敏感的* - foo=bar 不同于 FOO = bar。 engine = On ; 使 PHP scripting language engine(PHP 脚本语言引擎)在 Apache下有效。 short_open_tag = On ; 允许 tags 将被识别。 asp_tags = Off ; 允许ASP-style tags precision = 14 ; 浮点类型数显示时的有效位数
Copy after login

The above is the detailed content of What are the two configuration files of php?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!