Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make configuration modifications when deploying PHP

Shulou Source: shulou.com Published: 2022-06-03 09:15:47 11月15日 Update

This article focuses on "how to modify the configuration when deploying PHP". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to modify the configuration when deploying PHP.

1. What is short_open_tag?

Determines whether the abbreviated form of the code start flag is allowed ().

If you want to use PHP with XML, you can disable this option to facilitate embedding. Otherwise, you can also output through php, for example:.

If disabled, you must use the full form of the PHP code start flag ().

Note: this directive also affects the use of ASP-style flags in addition to the abbreviated form flags. This also includes an abbreviation for the value of the output variable.

Normally, we will set the value of asp_tags to On.

Note: support for ASP style logos is new to version 3.0.4.

3. Set the php extension path extension_dir= "PHP decompression path\ ext", which is required when calling mysql.

For example, when deploying apche+mysql+php, you usually need to remove the following semicolons before dll to enable its function:

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

4. Set China time zone date.timezone = prc

Date.timezone is a new profile parameter added in PHP 5.1.The default date.timezone is commented out, that is, the default time zone is utc, and the time zone is changed to date.timezone = PRC, which can solve the problem of time difference of eight hours.

At this point, I believe you have a deeper understanding of "how to modify the configuration when deploying PHP". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Flag configuration acronym form time zone code content path style learning output utility deeper that is interest semicolon function parameter again can be passed through the Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info Apple Shulou Technology MariaDB