PHP4.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下.

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











MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

SQL is a standard language for managing relational databases, while MySQL is a database management system that uses SQL. SQL defines ways to interact with a database, including CRUD operations, while MySQL implements the SQL standard and provides additional features such as stored procedures and triggers.

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

MySQL is suitable for rapid development and small and medium-sized applications, while Oracle is suitable for large enterprises and high availability needs. 1) MySQL is open source and easy to use, suitable for web applications and small and medium-sized enterprises. 2) Oracle is powerful and suitable for large enterprises and government agencies. 3) MySQL supports a variety of storage engines, and Oracle provides rich enterprise-level functions.

MySQL and phpMyAdmin can be effectively managed through the following steps: 1. Create and delete database: Just click in phpMyAdmin to complete. 2. Manage tables: You can create tables, modify structures, and add indexes. 3. Data operation: Supports inserting, updating, deleting data and executing SQL queries. 4. Import and export data: Supports SQL, CSV, XML and other formats. 5. Optimization and monitoring: Use the OPTIMIZETABLE command to optimize tables and use query analyzers and monitoring tools to solve performance problems.
