Home > php教程 > PHP开发 > body text

PHP configuration for PHP learning

黄舟
Release: 2016-12-20 11:55:40
Original
1408 people have browsed it

Starting today, I will introduce you to the basic knowledge of PHP learning. Today I will introduce the most basic PHP configuration.
1.php installation
Download the latest version of php from the Internet.
1. Copy the php directory to the C drive directory.
2. Copy the libmysql.dll file in the php directory to the c:windows/system32 directory.
3. Open the php directory, change the php.ini_dest file to php.ini, and make the configuration file.
4. Open the php.ini file and remove the semicolon in front of extension=php_gd2.dll and extension=php_mysql.dll, so that php can support GD2 functions and mysql database.
5. Restart apahce.
In this way, php is simply configured.
2.php configuration file
Then let’s briefly talk about the php configuration file.
";" indicates a comment. If you want to enable an extension, just delete the preceding ";".
max_execution_time = 30 The maximum execution time is 30 seconds
max_input_time = 60 The maximum input data time is 60 seconds
memory_limit = 128m The maximum memory occupied by each script is 128m
error_reporting = E_ALL&~E_NOTICE Display warning and error information
displaye_errors =On Display error switch On
post_max_size = 8m The maximum post data is 8m
file_uploads = On The file upload switch is on
upload_max_filesize = 8m The maximum file upload is 8m
extension = php_zip.dll Call the compressed package
date.timezone = "Asia/Chongqing" Set the time zone Set to China
session.save_path = "c:/temp" session save directory
extension_dir = "c:phpext" PHP function extension directory
The above is a simple PHP configuration, just a brief introduction, more details will be given later Explain the configuration of PHP to facilitate PHP learners to increase their knowledge.

The above is the content of PHP configuration for PHP learning. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!