Eclipse PDT all in one Configuration

Source: Internet
Author: User

I 've been suffering from this for a long time recently and it's okay tonight. Let me explain it. At first, I thought that when I created a web project like J2EE, the plug-in will be automatically copied to the directory of the Web server. The result is not like this in PHP, it is necessary to directly build the PHP project in the virtual directory corresponding to Apache. Let me talk about it here. On the Internet, there is basically no clear explanation of the copy disorder ..

1: configure the Apache and php5.2 environments to ensure that PHP (PHP. ini I didn't put it into the Windows directory, but put the PHP installation directory and the PHP/EXT directory INTO THE PATH environment variable and restarted the computer)

2: Download eclipse-php-helios-win32.zip, ZendDebugger-5.2.14-cygwin_nt-i386

3: Decompress the zenddebugger and find the zenddebugger under 5_2_x_comp. DLL (corresponding to the PHP version), copy this file to the ext directory under the PHP decompression directory, my PHP decompression directory is D: \ php-5.0.5-Win32.

4: Add the following three sentences under PHP. ini:

Zend_extension = D :\php-5.0.5-Win32 \ ext \ zenddebugger. dll
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = always

5: Open eclipse and create a PHP project. The directory is stored in the Apache main directory. For example, I first create a folder under the main directory and then save the project to this directory. Mainly for eclipse settings:

5.1: New under PHP executables:

5.2: PhP servers-> select the default one-> edit-> path mapping-> Add->:
Here, path on server is the name of the virtual directory, and the following is the project ..

 

6: Create a PHP file under the new project, right-click the file and choose run as> php web page. A path window is displayed, then we can see ..

7: For Debu, copy a dump. php file under the Zend debugger directory to the project home directory ..

 

OK. It's been a few days since ..

Related Article

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.