PHP configuration for PHP learning
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)!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Interpret the encoding modification method in the PHP.ini file. The PHP.ini file is a PHP configuration file. You can configure the PHP running environment by modifying the parameters in it. The encoding settings are also very important, and play an important role in processing Chinese characters, web page encoding, etc. This article will introduce in detail how to modify encoding-related configurations in the PHP.ini file, and give specific code examples for reference. View the current encoding settings: In the PHP.ini file, you can search for the following two related parameters

PHP time zone configuration errors are a common problem. When date and time related functions are involved in PHP code, it is very important to configure the time zone correctly. If the time zone configuration is incorrect, the date and time display may be inaccurate or other problems may occur. Solving PHP time zone configuration errors requires specifying the correct time zone by setting the date_default_timezone_set() function. Here is a specific code example:

In the Ubuntu system, PHP-FPM is a commonly used PHPFastCGI process manager, used to handle the running of PHP programs. However, in some cases, PHP-FPM may be missing, causing PHP to fail to run properly. This article will introduce how to deal with the lack of PHP-FPM in Ubuntu and provide specific code examples. Problem Description When installing PHP in Ubuntu system and enabling PHP

How to change the encoding settings in PHP.ini requires specific code examples. In PHP development, character encoding is a very important issue. Correct character encoding settings ensure correct transmission and display of data. The PHP.ini file is the configuration file of PHP. By modifying the PHP.ini file we can make some global configurations, including character encoding settings. Below we will explain in detail how to change the encoding settings in the PHP.ini file, and attach a code example. Step 1: Find PHP.ini

MySQL is one of the most widely used database servers today, and PHP, as a popular server-side programming language, its applications usually interact with MySQL. Under high load conditions, MySQL performance will be greatly affected. At this time, PHP configuration needs to be adjusted to improve MySQL performance and thereby increase the response speed of the application. This article will introduce how to improve MySQL performance through PHP configuration. To configure PHP.ini, you first need to open the PHP configuration file (PHP.ini), so that you can change

Configuration and optimization of PHP in the Kangle server environment. Kangle is a stable and efficient server software. Many websites choose to run in the Kangle environment. As a popular server-side scripting language, PHP is often used with Kangle. This article will introduce how to configure and optimize PHP in the Kangle server environment to improve the performance and security of the website. 1. PHP configuration 1. Find the php.ini file in the Kangle server. The PHP configuration file is usually

How to configure and use Memcache in PHP Memcache is a commonly used memory caching system that can be used to speed up website access and reduce database pressure. Configuring and using Memcache in PHP is very simple, detailed steps and code examples are described below. Step 1: Install and start Memcache Before starting, you first need to install and start Memcache in your system. It can be installed on Ubuntu via: sudoapt-get

A Complete Guide to Configuring PHP5.2.17 in Windows Environment As a widely used web development language, the configuration of PHP on Windows platform is one of the challenges faced by many developers. This article will provide you with a detailed guide to configuring PHP5.2.17 in a Windows environment, and provide specific code examples to help you successfully complete the configuration process. First, you need to download the Windows version installation package of PHP5.2.17 and extract it to the directory you wish to install, as follows
