Home >Backend Development >PHP Tutorial >4 configuration modification instructions when deploying PHP, deploy PHP configuration_PHP tutorial

4 configuration modification instructions when deploying PHP, deploy PHP configuration_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:07:14804browse

Four configuration modification instructions when deploying PHP, deploying PHP configuration

The following are the four configuration modification instructions when deploying PHP. Let’s study and study one by one.

1. What is short_open_tag?
Determines whether the abbreviated form of the code start mark (b26da186e11666e6dd99f28d6205715c ) is allowed.

If you want to use PHP with XML, you can disable this option to facilitate the embedded use of f6c9d22ed0b7ffdd3ee0947ed25faddb. Otherwise, you can also output it through php, for example: 43602a834f56edc86af9b156fd7178a0 .

If disabled, the full form of the PHP code start flag (bb9bd6d87db7f8730c53cb084e6b4d2d ) must be used.
Note: This directive also affects the abbreviated form 93b97b5dd161fa76b301b11d61c88cc8 in addition to the usual bb9bd6d87db7f8730c53cb084e6b4d2d flag. This also includes the output variable value abbreviation a863ae3f90cb87442c9609be64b061ba.
Normally we will set the value of asp_tags to On.
Note: ASP style flag support is newly added in version 3.0.4.

3. Set the php extension path extension_dir="PHP decompression path ext", which is needed when calling mysql.
For example, when deploying apche mysql php, you usually need to remove the semicolons in front of the following dlls to enable their functions:

extension=php_bz2.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
extension=php_sockets.dll
extension=php_xmlrpc.dll 

4. Set China time zone date.timezone = prc
date.timezone is a newly added configuration file parameter in PHP 5.1. The default date.timezone is commented out, that is, the default time zone is utc. Changing the time zone to date.timezone = PRC can solve the eight-hour time difference. question.

The above is the entire content of this article. I hope you will remember these four important points, which will definitely come in handy when deploying PHP in the future.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1062502.htmlTechArticleFour configuration modification instructions when deploying PHP, deploying PHP configuration The following are the four configuration modification instructions when deploying PHP , everyone studied and researched one by one. 1. What is short_open_tag? ...
Statement:
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