To use PHP recently, we need to build a PHP environment. The record is as follows:
-
- Environment java required by IDE
No way, no matter eclipse, netbeans, zendstudio all need Java, JRE
Java7: http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-windows-i586.exe has installed java6 or other people, you can not download.
- ide
netbeans7.1 7.0 Chinese Encoding Problems
full version 250 m, support for Java, C ++, PHP, and other languages: http: // 211.67.48.221/download/1712195/1829047/5/EXE/168/242/1325812006824_242/netbeans-7.1-ml-windows.exe
only support PHP version to go to netbeans.org download it, only 50 m
eclipse indigo
: http://ftp.neu.edu.cn/mirrors/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-SDK-3.7.1-win32.zip
and then in help-> in Stall new software, choose indigo to install PDT
zendstudio
8.0: http://downloads.zend.com/studio-eclipse/8.0.0/ZendStudio-8.0.0.msi
Username: zendstudio.net
serial number: 3727234f6095f72034f6095f
9.0.1: http://downloads.zend.com/studio-eclipse/9.0.1/ZendStudio-9.0.1.msi
no registration code, only unlimited free trial.
- PHP + Zend framework
XAMPP is recommended for PHP Environments
: Http://www.apachefriends.org/download.php? Xampp-win32-1.7.7-VC9-installer.exe
You can select a location for installation.
Zendframework 2.0 Beta
: Http://packages.zendframework.com/releases/ZendFramework-2.0.0beta2/ZendFramework-2.0.0beta2.zip
1.11 of: http://downloads.zend.com/framework/1.11.11/ZendFramework-1.11.11.zip
It seems that zf2.0beta cannot be used. So let's go to 1.11.11.
Steps:
- Decompress ZF to the specified directory. The path must be in English, for example, E: \ Program \ zendframework.
- Add the system environment variable zf_home to E: \ Program \ zendframework.
- Add the bin directory e: \ Program \ zendframework \ bin and PHP path E: \ Program \ XAMPP \ PHP in the path of the system environment variable.
- Copy the Zend folder under the E: \ Program \ zendframework \ library directory to the E: \ Program \ XAMPP \ PHP \ pear directory. In fact, this step is not required.
- Modify PHP. include_path in INI is as follows: include_path = ".; e: \ Program \ XAMPP \ PHP \ pear; E: \ Program \ XAMPP \ PHP \ pear \ Zend ", that is, add a Zend path. If you do not perform Step 4, set the path of your Zend.
Everything is done.
Next, set the php ide and I will use nb7.1rc.
- Enable PHP, select tool-plug-in-installed in netbeans, select PHP, and click the activation button below.
- Tools-Option-PHP tab, add the inclusion path, and click Register Zend provider
- View the output result of the command prompt line
The following results indicate that the registration is successful.
Now we can create a New ZF project. Haha. Good.
I hope to help you.