Home > Backend Development > PHP Tutorial > Some tips for PHP and apache configuration

Some tips for PHP and apache configuration

WBOY
Release: 2016-07-29 09:14:25
Original
1003 people have browsed it

1. extension_dir = string

Scope: PHP_INI_SYSTEM Default: ./ (on windows, defaults to ext) Tells PHP the location of loadable extension modules.
2. extension = php_mysqli.dll and extension = php_mysql.dll
The reason why two extension libraries are activated for php during configuration is because: In order to use basic function operations to access mysql databaseserver, mysql must be added when configuring php support, that is, using the php_mysql.dll extension library. ​​
Although the php_mysql.dll extension library is compatible with mysql 4.1.0 and later machine versions, it does not support the additional functions provided by these versions. To use these functions, you also need to use the php_mysqli.dll extension library.
3.php_mbstring.dllThe full name of the mbstring library is Multi-Byte String. That is, each language has its own encoding, and their number of bytes is different. Currently, the internal encoding of PHP only supports ISO-8859- *, EUC-JP, UTF-8
Other encoding languages ​​cannot be displayed correctly on the PHP program.
The solution is to use the mbstring function library of php to solve it.
4.exif is an extension for reading photo information. Move extension=php_mbstring.dll in the php.ini file before extension=php_exif.dll. The reason is that exif needs to call mbstring, so mbstring must be in front. php_exif.dll, EXIF ​​function library, requires php_mbstring.dll. And in php.ini, php_exif.dll must be loaded after php_mbstring.dll.
5.
Also note that true color functions cannot be used in GD1, use php_gd2.dll instead.
6.;upload_tmp_dir = ; Temporary directory to store files uploaded using the HTTP protocol (use the system default if not specified) 7. session.save_path in the PHP configuration file is responsible for the storage location of the session file. 8.;date.timezone = Default time zone setting9.include_path Define the public included file storage path. As a reminder, there are two include_paths in php.ini, one is used under Unix Yes, one part is used under windows. You need to modify the one used under windows

The above introduces some tips for PHP and apache configuration, including include and sql database. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template