Install Eclipse's PHP plugin under Linux

Source: Internet
Author: User

In fact, if you have installed the PHP environment (see the installation process), you only need the following 2 steps. HoHo, it's simple.

1, download the plugin for PHP in eclipse
Address: http://www.phpeclipse.de/tiki-view_articles.php
Http://prdownloads.sourceforge.net/phpeclipse/PHPEclipse1.1.3-2005-01-29.zip?use_mirror=jaist

2, decompression. Under the Plugins folder, under the Eclipse\plugins folder, the contents of the features folder are under Copy to the Eclipse\features folder.

using the Eclipse environment to write PHP programs, here's a detailed description. A base friend can not look.

Brief introduction:
Eclipse, the famous Open-source software, the IDE, is widely used in Java development.
With the appropriate plug-ins, most programming languages can be supported.

Use premise:
Installed the amp (a=apache, m=mysql, p=php) environment correctly, the operating system platform is not limited

Download:
eclipse3.0.1:http://www.eclipse.org/downloads/index.php
(Choose the appropriate version of your system, support Windows,linux,max, etc., recommend the latest version 3.0.1)

PHPEclipse Plugin: http://sourceforge.net/project/showfiles.php?group_id=57621
(IBID., latest version 1.1.2)

Installation:
are green software, no need to install:P
Untie the downloaded Eclipse package and place it in the Common Installation software folder (do not rush to start eclipse immediately)
Extract the PHPEclipse plug-in (the downloaded package contains features and plugins two folders, as in the Eclipse directory, should be corresponding) to the corresponding directory in eclipse
Attention:
If you have already installed eclipse or have already started before extracting the plugin, the PHP plugin will not be recognized immediately because it scans all XML files and caches them for faster startup speed for the first startup. You need to use the option-clean to force it to start once. (Win under the direct cmd to the Eclipse directory again Eclipse.exe–clean, other platforms similar)

Configuration:
1, Eclipse startup is slow, in the hardware configuration of the machine also need a good number of seconds, please wait patiently. The first launch will allow you to select the Working directory (workspace), make a tick after the next time will not ask.
2, the other specify a directory used to place the PHP project, if you do not specify the default in the workspace subdirectory, it is best to think of a good name, such as my: Workspace/phpeclipse
3, modify the httpd.conf file, create a new point to Workspace/phpeclipse alias (alias)---PHP installation problem, not much. I'm still called PHPEclipse. Of course, if you put the PHP project under the DocumentRoot, this step can be omitted.
4, after this startup will find a lot of menu and toolbar things (if you have used eclipse before, hehe)
In the Window-preferences–phpeclipse Web development–php, specify your PHP environment apache,php,mysql three executable files in the corresponding location, as the parameters seem to default on it, I used the Apache2, modified a bit, starting with:-w-n "Apache2"-K start; Stop with:-w-n "Apache2"-K stop; re-enable-w-n "Apache2"-K restart
That's the number of Apache and MySQL buttons on the toolbar that you can use.

Use:
Menu->new->project->php->php Project, specify a name, and then you can use it, but be aware that it corresponds to the previous alias part, otherwise you cannot access the
Right-click on the item name in the Navigator column, new PHP file, and then save, Eclipse will automatically open the Web browser display results. Pretty good. It is mainly for the convenience of integrated development, code block expansion, automatic completion and many other features.

For more detailed information on adding PHP plug-ins to eclipse, refer to this article (in English):
Http://www.phpbuilder.com/columns/c...921.php3?page=1
The home page of the PHPEclipse plugin is in http://phpeclipse.de/, installation if there is a problem or need more detailed documentation can go to the top to find.

I hope you can help the PHP developer.

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.