Several configuration changes during PHP deployment. How many configuration modifications are made during PHP deployment? 1. what is the short_open_tag? Determine whether to allow the abbreviated form of the code start sign (??). If you want to use PHP in combination with XML, you can describe several configuration modifications during PHP deployment.
1. what is short_open_tag?
Determine whether to allow the abbreviated form of the code start sign ( ). If you want to use PHP with XML, disable this option for embedded use. . Otherwise, it can be output through php, for example: . If disabled, you must use the complete form of the PHP code start flag ( ).
Note: This instruction will also affect the abbreviated form
2. what is asp_tags?
Except for the common ASP-style flag is also allowed <%>. This also includes the abbreviation of the output variable value <% = $ value %>.
Generally, we set the asp_tags value to On.
Note: ASP style labels are newly added in version 3.0.4.
3. set the php extension path extension_dir = "PHP decompression path \ ext", which is required when mysql is called.
For example, to deploy apche + mysql + php, remove the semicolon before the following dll to enable the function:
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 value is 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.
Example 1. what is short_open_tag? Decide whether to allow the abbreviated form of the code start sign (? ? ). If you want to use PHP in combination with XML, you can...