Modular installation of PHP in NT series OS_PHP tutorial
in various network programming languages. PHP has attracted many programming enthusiasts because of its simplicity, ease of learning and powerful functions. However, the installation of PHP has become a stumbling block for many beginners. Now let me give you a more detailed introduction to a method of installing PHP and common modules in a modular manner under the Microsoft Windows 2000/XP platform.
1. Basic knowledge
Before the introduction, please understand some basic knowledge of PHP installation. PHP has two different installation methods: CGI and modular.
For PHP installed in CGI mode, every time a PHP script is parsed, the server will generate a temporary PHP parser (process) to parse the PHP script. When the amount of access is large, Server performance will be reduced.
With modular installation of PHP, it runs at the same memory address as the Apache server. It has considerable performance improvement and higher security than CGI method.
So modular installation has greater advantages than CGI method. Related software is listed below:
Apache server uses the 2.0.43 series version. Download address: http://www.apache.org/
PHP uses the newer version 4.32 with good security and stability, and supports modular installation. Download address: http://www.php.net/
2. Install the Apache server
When the relevant software is ready. Install Apache 2.0.43 first, during installation. The default installation path is the start menu of C:. It is recommended to change the path to the root directory of the C drive. This will be more convenient in daily use.
After Apache is installed. Note that a red feather symbol will appear in the system tray area of the taskbar. If there is a green triangle underneath the feather. Indicates that Apache is installed successfully and is running. If a red stop sign appears, it means there was a problem during the installation process, usually a port conflict. If there is another server such as IIS installed on your machine, please check whether port 80 is occupied by IIS. If you want Apache to use a different port, OK. Select Edit the Apache httpd.conf Configuration File in the Configure Apache Server of the Apache HTTP Server 2.0.43 project in the start menu. After opening it (it is recommended to install and use a text editor with line number display such as UltraEdit), there is Listen around line 120. 80 words. Indicates that Apache uses port 80 by default. You can change it to the port you want. Just add the port number you modified when browsing. For example, http://localhost(:port number)/index.html.en, this is the start page of Apache.
3. Modular installation of PHP
After installing Apache, the important step begins. Unzip the downloaded PHP4.32 to the root directory of drive C. Generally, the default folder name should be in the format of php-4.3.2-Win32, change it to php. Then change the php.ini-dist file to php.ini, and copy this file to the C:WINNT or C:WINDOWS directory. (A little knowledge here is that if there are php.ini configuration files in both the system directory and the PHP directory, PHP will execute the one in the PHP directory first!) This is also a problem that many friends often encounter when using PHP on a daily basis. I modified php.ini in the system directory, but the desired result was not achieved after running it. Here's why!

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

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

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



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.
