Home > Backend Development > PHP Tutorial > picture motion browser Install the official version of PHP40 on PWS

picture motion browser Install the official version of PHP40 on PWS

WBOY
Release: 2016-07-29 08:34:52
Original
1288 people have browsed it

1. You can install Personal Web Server from add-onspwssetup.exe on the Windows 98 installation disk. Just choose typical installation and use the default installation directory C:Inetpubwwwroot;
2. Software download:
http:// www.php.net/distributions/php-4.0.0-Win32.zip
3. Use WinZIP and other decompression tools to unzip php-4.0.0-Win32.zip to the PHP installation directory, such as C:PHP, in this article
Use $PHP_ROOT instead of the PHP installation directory;
4. For detailed English installation documentation, please refer to the README.txt file in the $PHP_ROOT directory;
5. Copy the php.ini-dist file in the $PHP_ROOT directory to C:WINDOWS directory, and rename C:WINDOWSphp.i
ni-dist to C:WINDOWSphp.ini;
6. Copy MSVCRT.DLL and php4ts.dll in the $PHP_ROOT directory to the C:WINDOWSSystem directory. If C:
WINDOWSSystem directory These files already exist, please do not overwrite;
7. Modify C:WINDOWSphp.ini:
1) Set extension_dir to the PHP installation directory, such as: extension_dir = C:PHP
2) Configure the dynamic extension library to be loaded ( DLL), be sure to ensure that you can only load dynamic link libraries that exist in the $PHP_ROOT directory. This version comes with these dynamic link libraries: php_calendar.dll, php_imap.dll, php_ldap
.dll, so the dynamic link library The configuration bar is as follows:
                                   it program (Start->Run, enter regedit), find the following path:
My computer
HKEY_LOCAL_MACHINE
SYSTEM
CURRENTCONTROLSET
Services
W3svc
Parameters
Script Map
then right-click script map- & gt; PHP program must be with .php. is the suffix
, of course you can change it to something else), double-click the newly created string value, and enter the complete path of the php4isapi.dll file $PHP_ROOTphp4isapi.dll in the key value input box, such as C:PHPphp4isapi.dll;
9. Create a PHP test directory, such as D:MyPHP. In this article, use $MyPHP to replace the directory. Open the PWS manager (right-click a small icon under the status bar and click Properties). After opening, click Advanced Configuration. , add a virtual directory, the directory is $MyPH
P, in this example it is D:MyPHP, the alias is MyPHP, and the access rights are read, execute, and script;
10. Restart the computer;
11. Write in the $MyPHP directory A test program phpinfo.php (note that the suffix must be consistent with the suffix in 8), the content is
, then enter http://localhost/myphp/phpinfo.php on the browser Test, if you can see some information about php, it means it is installed.

The above introduces the picture motion browser to install the official version of PHP40 on PWS, including the content of the picture motion browser. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template