How to use PHP in Eclipse? PHP Development using Eclipse
Posted by Joys of Programming on in PHP
Eclipse is mostly used for Java Development. But you can use it for development in other languages like PHP as well. To use PHP in Eclipse, you can make use of PDT (PHP Development Tool). PDT installs the necessary tools to work easily with PHP in Eclipse. To install PDT, you can download it from here. For a simpler way to install PDT in Eclipse, follow the given steps
- Go to Window->Preferences->Install/Update
- Click on Available Software Sites
- Press Add
- Enter PDT 2.2 in the Name input box
- Enter the following URL http://download.eclipse.org/technology/dltk/updates-dev/2.0/ in the Location Input box
- Press Ok. Again Press Ok (Available Software Sites)
- Now you are done with specifying the software update sites. The above step will not install any packages. The next step is to install the package
- To install the PDT package, Go to Help->Install New Software.
- You can see a input box Work with, where you must enter or select a site.
- You can either enter PDT 2.2 or select the http://download.eclipse.org/technology/dltk/updates-dev/2.0/ from the drop down list.
- The package list will be fetched. Choose the PDT 2.2 package as a whole and Press Next.
- You will be now redirected to a Licence agreement. If you agree, press Finish. And the packages will be installed.
- You may have to restart eclipse after the installation.
Probable Errors:
In case you face some errors while installing in Ubuntu 10.04, follow the instructions given here.
Comments: