The stone of his mountain-4 configuration modification instructions when deploying PHP ____php

Source: Internet
Author: User

The following is the deployment of PHP 4 configuration change instructions, one for each study.

1, Short_open_tag is what it is.
Determines whether to allow use of the abbreviated form of the Code start flag (?>).

If you want to use PHP in conjunction with XML, you can disable this option to make it easy to embed using <?xml?>. Otherwise, you can output it through PHP,

For example: <?php echo ' <?xml version= ' 1.0 '?>.

If disabled, you must use the full form of the PHP Code start flag (<?php?>).
Note: This directive will also affect the abbreviated form <?=, it and echo equivalence. Using this abbreviation requires the Short_open_tag value to be on.

2, Asp_tags is what.
In addition to the usual <?php?> flags, it is permissible to use the ASP-style logo <%%>. This also includes an abbreviation for the output variable value <%= $value%>.
In general, we will set the value of Asp_tags to ON.
Note: ASP Style logo support is 3.0.4 version of the new addition.

3. Set PHP extension path extension_dir= "PHP decompression path \ext", call MySQL need to use.
When deploying apche+mysql+php, it is usually necessary to remove the semicolon before the following several DLLs to enable it to function:

<span style= "FONT-SIZE:18PX;" >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 </span>

4. Set China time zone Date.timezone = PRC
Date.timezone is the newly added profile parameter in PHP 5.1, the default date.timezone is commented out, is the default time zone is UTC, change time zone to Date.timezone = PRC, can solve the time difference of eight hours of problem.

The above is the entire content of this article, I hope you remember this important four points, the future deployment of PHP will certainly come in handy.

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.