search
HomeBackend DevelopmentPHP TutorialPHP4.04在英文win2000下的安装_PHP

写本文的目的主要是回报一下引路人站长为大家写的两篇介绍在win9x下和linux下安装PHP4.04的文章。也希望能够给初学者一点点帮助。本文主要介绍PHP4.04及mysql3.22.34在英文win2000系统IIS下的安装。 文中所汲及的软件都可以在本站目下载。由于是回复引路人的文章,所以文章格式编排和它的相同,可不要以为是抄袭哟(当然也是有一点点啦,:))

....所需软件

·php4.04 win 32位安装程序
·mysql3.22.34 win 32位版共享版
第一步 下载所需程序,安装运行MYSQL3.22安装程序。

....下载包是一ZIP文件包需用WINZIP等工具解开,运行setup.exe安装,缺省安装目录是c:\mysql。将PHP4文件包解开到c:\php目录下。

第二步 安装数据库及php4。

.... 首先确定你的系统有没有安装IIS,如果没有那就先按下面的方法装IIS吧,:),Win200的professional版的安装盘中没有附带IIS,所以你首先要找到一张Win2000 Server版的安装盘,然后打开Control Panel,接着运行Add/Remove Programs 选Add/Remove Windows Components 安装Internet Information Services,然后根据提示Step By Step.OK,现在已经装好了IIS,下面进行PHP的安装

.... 解压后在PHP的目录下有如下文件

·php.ini-dist
·msvcrt.dll
·pws-php4.reg
·libmysql.dll
·php.exe
·php4ts.dll
·php4isapi.dll
·php_mysql.dll

.... 将所有dll文件copy 到你的system目录,如C:\WINNT\system32\下,注意哟,php.exe不是一个标准的可执行程序,所以你必须把那些DLL文件拷贝到system32

将php.ini-dist改名为php.ini

修改 extension_dir = ./
为 extension_dir = c:\winnt\system32\

修改 ;extension=php_mysql.dll
除去前边的";"号

在[mysql]栏下修改
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
这三栏原始参数为空。
复制php.ini 到c:\WINNT 目录下

然后再次打开Control Panel,打开Administrative Tools 运行 Internet Services Manager 在Web服务上点鼠标右键,选Properties,如图一所示:

图一

然后在弹出的窗口中选ISAPI filter,如图二所示:

图二

增加一个以PHP为名字,包含php4isapi.dll的子键,如图三示:

图三

接着在Home Directory中选Configuration,增加一个应用映射。如图四,图五所示:不过要注意哟要用php4isapi.dll 而不是php.exe!

图四

图五所示

下面的就简单了,你只要重启一次iis服务就可以用PHP喽

第三步测试

....运行c:\mysql\bin\mysqld-shareware.exe启动数所库,或者用 c:\mysql\bin\mysqld-shareware.exe --install命令把mysql做为一项服务来加载。如果不想加载了可以用c:\mysql\bin\mysqld-shareware.exe --remove把mysql卸载下来。
.... 你也可以新建立一个php文件如下,然后IE下运行这个info.php文件,如果能够运行,这表明整个系统以能正常工作。

文件名 info.php

//查看系统状况 文件开始

phpinfo();?>

//文件结束

在IE中访问此页时你将得到有关PHP的运行资料.

注.本文中所有内容都在文中有关的平台上运行通过,不同的PHP版本可能会有所不同在WINNT下安装时php.ini及dll文件分别放在c:\winnt及c:\winnt\system32下.

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
When would you use a trait versus an abstract class or interface in PHP?When would you use a trait versus an abstract class or interface in PHP?Apr 10, 2025 am 09:39 AM

In PHP, trait is suitable for situations where method reuse is required but not suitable for inheritance. 1) Trait allows multiplexing methods in classes to avoid multiple inheritance complexity. 2) When using trait, you need to pay attention to method conflicts, which can be resolved through the alternative and as keywords. 3) Overuse of trait should be avoided and its single responsibility should be maintained to optimize performance and improve code maintainability.

What is a Dependency Injection Container (DIC) and why use one in PHP?What is a Dependency Injection Container (DIC) and why use one in PHP?Apr 10, 2025 am 09:38 AM

Dependency Injection Container (DIC) is a tool that manages and provides object dependencies for use in PHP projects. The main benefits of DIC include: 1. Decoupling, making components independent, and the code is easy to maintain and test; 2. Flexibility, easy to replace or modify dependencies; 3. Testability, convenient for injecting mock objects for unit testing.

Explain the SPL SplFixedArray and its performance characteristics compared to regular PHP arrays.Explain the SPL SplFixedArray and its performance characteristics compared to regular PHP arrays.Apr 10, 2025 am 09:37 AM

SplFixedArray is a fixed-size array in PHP, suitable for scenarios where high performance and low memory usage are required. 1) It needs to specify the size when creating to avoid the overhead caused by dynamic adjustment. 2) Based on C language array, directly operates memory and fast access speed. 3) Suitable for large-scale data processing and memory-sensitive environments, but it needs to be used with caution because its size is fixed.

How does PHP handle file uploads securely?How does PHP handle file uploads securely?Apr 10, 2025 am 09:37 AM

PHP handles file uploads through the $\_FILES variable. The methods to ensure security include: 1. Check upload errors, 2. Verify file type and size, 3. Prevent file overwriting, 4. Move files to a permanent storage location.

What is the Null Coalescing Operator (??) and Null Coalescing Assignment Operator (??=)?What is the Null Coalescing Operator (??) and Null Coalescing Assignment Operator (??=)?Apr 10, 2025 am 09:33 AM

In JavaScript, you can use NullCoalescingOperator(??) and NullCoalescingAssignmentOperator(??=). 1.??Returns the first non-null or non-undefined operand. 2.??= Assign the variable to the value of the right operand, but only if the variable is null or undefined. These operators simplify code logic, improve readability and performance.

What is Content Security Policy (CSP) header and why is it important?What is Content Security Policy (CSP) header and why is it important?Apr 09, 2025 am 12:10 AM

CSP is important because it can prevent XSS attacks and limit resource loading, improving website security. 1.CSP is part of HTTP response headers, limiting malicious behavior through strict policies. 2. The basic usage is to only allow loading resources from the same origin. 3. Advanced usage can set more fine-grained strategies, such as allowing specific domain names to load scripts and styles. 4. Use Content-Security-Policy-Report-Only header to debug and optimize CSP policies.

What are HTTP request methods (GET, POST, PUT, DELETE, etc.) and when should each be used?What are HTTP request methods (GET, POST, PUT, DELETE, etc.) and when should each be used?Apr 09, 2025 am 12:09 AM

HTTP request methods include GET, POST, PUT and DELETE, which are used to obtain, submit, update and delete resources respectively. 1. The GET method is used to obtain resources and is suitable for read operations. 2. The POST method is used to submit data and is often used to create new resources. 3. The PUT method is used to update resources and is suitable for complete updates. 4. The DELETE method is used to delete resources and is suitable for deletion operations.

What is HTTPS and why is it crucial for web applications?What is HTTPS and why is it crucial for web applications?Apr 09, 2025 am 12:08 AM

HTTPS is a protocol that adds a security layer on the basis of HTTP, which mainly protects user privacy and data security through encrypted data. Its working principles include TLS handshake, certificate verification and encrypted communication. When implementing HTTPS, you need to pay attention to certificate management, performance impact and mixed content issues.

See all articles

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.