PHP and apache configuration tip

Source: Internet
Author: User
: This article mainly introduces some tips for PHP and apache configuration. For more information about PHP tutorials, see. 1. Extension_dir = string

Scope: PHP_INI_SYSTEM

Default value:./(in windows, the default value is ext)

Tell PHP where the extension module can be loaded.


2. Extension = php_mysqli.dll and extension = php_mysql.dll


The reason why two extension libraries are activated for php during configuration is:

To access my SQL databaseServer, you must add mysql support when configuring php, that is, use php_mysql.dll Extension Library.


Although the php_mysql.dll Extension Library is compatible with versions later than mysql 4.1.0, it does not support the additional features provided by these versions. to use these features, you also need to use the php_mysqli.dll Extension Library.


3. php_mbstring.dll

Mbstring Library full name is Multi-Byte String that all languages have their own encoding, their number of bytes is not the same, the current php internal encoding only supports ISO-8859-*, EUC-JP, UTF-8
Other encoding languages cannot be correctly displayed in php programs.
The solution is to use the mbstring function library of php to solve the problem.

4. exif is an extension for reading photo information,

In the php. ini file, move extension = php_mbstring.dll to extension = php_exif.dll.

The reason is that exif needs to call mbstring, so mbstring must be in front of. php_exif.dll and the EXIF function library. php_mbstring.dll is required. In php. ini, php_exif.dll must be loaded after php_mbstring.dll.
5.

In addition, note that the true color function cannot be used in GD1.Php_gd2.dll.
6.; upload_tmp_dir =; temporary directory for storing files uploaded using HTTP protocol (use the default directory when not specified)

7. in the PHP configuration file, session. save_path is used to store the session file.

8.; date. timezone = default time zone settings

9. Include_ Path defines the storage path of public contained files. Please note that there are two items in php. ini. Include_ Path: used in Unix, used in windows, and used in windows.

The above describes some tips for PHP and apache configuration, including include and SQL database, and hope to help those who are interested in PHP tutorials.

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.