I suppose people use PHP because of his price: free. MySQL provides a free database solution for developers who need to add database functions to the system. The disadvantage of these solutions is that they are complicated in setup and management.
The PHP version I used in this article is PHP 4.3.4 for Win32, which can be downloaded from The PHP Group. The MySQL version is MySQL 4.0.16 for Win32, which can be obtained from MySQL.com. MySQL installation is easy-simply follow the instructions. PHP is a little complicated.
The PHP download page contains two files: a ZIP file and an installation file. Because we need to add extensions in the ZIP file, both files must be downloaded. The following is a simple step:
1. Use the installation file to install PHP;
2. Decompress iconv. dll and place it in the Windows system folder;
3. Create a directory under the PHP installation directory (C: PHP by default) "extensions ";
4. decompress the PHP_domxml.dll file to this directory;
5. Find the PHP. ini file in the Windows folder and open it in notepad or another text editor. Find "extensions_dir =" in this file, and change its value to the full path of the extension folder set in step 1;
6. Find "; extension = PHP_domxml.dll" and delete the semicolon starting with this line;
7. Restart the Web server.
Then, use the following code in your Web directory to create a PHP page named "test. PHP ". (This code runs properly on Windows 5.0 SP3 running IIS 2000 .)