Title: Use phped 3.3 to achieve PHP4 coexist with PHP5 author: Stangly Wrong
Recently, I will help my friend Xiaojie look for PHP development tools. After passing through a variety of PHP development tools, I finally picked the phped 3.3 software. Personally feel that this software is quite simple, very suitable for PHP's beginners, mainly It is his function completion function, completely solves the problem of PHP function memory. Key He also brought a web server, which is basically unconfigured to install the PHP program.
After a period of trial, it feels very easy. Today, it is unintentionally found that the web server that uses phped to bring the PHP4 and php5 coexistence, and the setting is simple, there is no problem in use. Don't dare to save, I will give you, please laugh.
<1> The first is to install Phped 3.3, you can download the trial version from the Internet, only 30 days of trial period, but this is estimated that it is difficult to stay.
Then you have to install PHP5, if there is no machine on your machine. PHP4 does not need to be installed, and then the phped 3.3 is installed, bringing one.
<2> Install the software (do not need to say more !!)
<3> After the software is installed, run the phped, then click on the menu
Tools selection
Settings menu item.
<4> In the pop-up dialog, verify
Server port defaults to 8080, if this number already has other service ports on your machine, it is recommended to change to a port without conflict, such as 9000
<5>
Home Directory is a website directory on your disk, such as d: /web_root/www.stangly.com/, it is not set to run your PHP program in phped, but in IE browser It is not possible to access it normally.
<6> Setting Default Document (s) is index.php, if it is used by "," separation, if you don't do it, try it.
<7>
File Extensions: In the list box, set the following image
(Important step)
Among them, the PHP-CGI.exe mode is used to parse execution in PHP5 php-cgi.exe, and the default PHP4 method is parsed by the default PHP4.
<8> Click OK to save the configuration.
Finally, the contents of the two files are as follows, the file name is Test.php and Test.php4
PHP
PHPINFO ();
?>
Next to save it
Go in Home Directory, then you enter on your browser
Http: // localhost: 8080 / Test.php
with
Http: // localhost: 8080 / test.php4
What is the result? The two files can be executed, one is PHP4, the other is PHP5. Hurry.
Attachment: php5 for phped version 3.3.3 Configureation
1. Unzip the PHP5 compression package to the C: / PHP directory, the recommended directory is C: / PHP, otherwise you have to change a lot.
2. Rename the C: /PHP/php.ini-dist file to php.ini. Modify the extensions directory in extension_dir = "c: / php / ext /" corresponding to your C: / PHP directory extensions table of Contents
3. Modify the session directory to C: / TMP or point to a directory, used to store session, but I have no settings, as if you can use session, you can use the session. 4. Modify the extension = php_mysql in php.ini .dll set, remove the ";" annotation mark. Because PHP5 is not loaded with MySQL dynamic library