Several configuration changes during PHP deployment

Source: Internet
Author: User

Several configuration changes 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 in combination with XML, you can disable this option for Embedded use. <? Xml?> . Otherwise, php can be used for output, for example: <? Php echo '<? Xml version = "1.0" ';?> . If disabled, you must use the complete form of the PHP code start flag (<? Php?> ).

Note: This command also affects the abbreviated form <? =, It matches <? Echo is equivalent. The short_open_tag value is On.

2. What is asp_tags?

Except for the common <? Php?> 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.

PHP 7.0.0 RC 5: download page, Windows source code and binary are provided in windows.php.net/qa /.

PHP 7 innovation and Performance Optimization

PHP 7, you deserve it

Experience PHP 7.0 on CentOS 7.x/Fedora 21

Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)

Nginx startup failure occurs during LNMP deployment.

Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)

Detailed php hd scanning PDF + CD source code + full set of teaching videos

Configure the php lnmp development environment in CentOS 6

PHP details: click here
PHP: click here

This article permanently updates the link address:

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.