Several configuration modifications during PHP deployment _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.