Php-Development Environment + zendframework Configuration

Source: Internet
Author: User

To use PHP recently, we need to build a PHP environment. The record is as follows:

  1. 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.
  2. 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.
  3. 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:

    1. Decompress ZF to the specified directory. The path must be in English, for example, E: \ Program \ zendframework.
    2. Add the system environment variable zf_home to E: \ Program \ zendframework.
    3. Add the bin directory e: \ Program \ zendframework \ bin and PHP path E: \ Program \ XAMPP \ PHP in the path of the system environment variable.
    4. 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.
    5. 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.

    1. Enable PHP, select tool-plug-in-installed in netbeans, select PHP, and click the activation button below.
    2. Tools-Option-PHP tab, add the inclusion path, and click Register Zend provider

    3. 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.

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.