search
Homephp教程PHP开发PHP configuration for PHP learning

PHP configuration for PHP learning

Dec 20, 2016 am 11:55 AM
php configuration

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)!


Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)