[4] modifying PHP versions with php Development Environment

Source: Internet
Author: User
Tags php development environment vc9
Before the dry goods php5.4: php-5.4.19-Win32-VC9-x86.zip: download. csdn. netdetailuudmail08187002495PHP contact also has a few days. For the php language, there are too many functions that I can't remember at the moment. I believe it can be improved after more Coding exercises. JQuery and Ajax technologies have not been used yet

Dry Goods front php5.4: php-5.4.19-Win32-VC9-x86.zip: http://download.csdn.net/detail/uudmail0818/7002495 PHP contact also has a few days. For the php language, there are too many functions that I can't remember at the moment. I believe it can be improved after more Coding exercises. JQuery and Ajax technologies have not been used yet

Before dry goods

Php5.4:Php-5.4.19-Win32-VC9-x86.zip

:Http://download.csdn.net/detail/uudmail0818/7002495


PHP has been in contact for several days. For the php language, there are too many functions that I can't remember at the moment. I believe it can be improved after more Coding exercises. JQuery and Ajax technologies have not been used yet. Due to the support of Java EE and JSP and some basic computer knowledge, such as C language, VF language, and SqlServer2000, for php, it is quick to get started and understand. MySQL has also been practiced. I believe that I can learn some results in a short time.

Because the thinkPHP3.1.3 framework requires the support of php5.3, we are forced to change the php version. This time, we have to upgrade from 5.2 to 5.4. At first, we used 5.5, I don't know why the connection to Apache2.2 always fails, and debugging fails. After I change it to 5.2, I will immediately pass the configuration. I guess there may be a problem with the php5.5 file downloaded by myself (not from the official website, it was originally saved on the hard disk, and I don't remember where it came from, so I didn't download it when the network was disconnected .) The possible cause is that the php5apache2_2.dll file is faulty because the parsing error persists. Well, you don't have to worry about it. If you don't have that much time, you have to do more meaningful things.

The thinkPHP3.1.3 video is down, so I learned about thinkPHP and Ajax synchronization and asynchronous data processing in the past two days. Next we will learn about jQuery.

First, let's talk about how to change the php5.4 version. First, save another copy of the previously configured lamp framework to avoid problems and restore it. Create a new php5.4 folder, decompress the 5.4 source code, and change php5.2 to php5.4.

Step 1: copy the php. ini-development file and change it to php. ini in the current directory.

Remove the; semicolon before extension_dir, and set extension_dir = "D:/Amp/php5.4/ext". Configure the location where the PHP file is installed.


Step 2; remove; semicolon before timezone, set timezone = PRC;


Step 3:

Search for the. so location in the httpd configuration file and add the following two lines.

PHPIniDir "D:/Amp/php5.4" is the PHP installation directory.

LoadModule php5_module "D:/Amp/php5.4/php5apache2_4.dll"


Step 4:

Search for AddType in

AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz

Add a few lines of code below to tell Apache to call the php file in case of a. php \ html \ txt \ htm file.

AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. txt

AddType application/x-httpd-php. htm


Saving the test php version information is displayed successfully !!!!!




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.