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 ; 浮点类型数显示时的有效位数
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!