The first time to use Eclipse to develop PHP projects, installation or will take a certain period, a careful look at this article, you can save a lot of time. First of all. The Eclipse project is developed in Java, so it needs to run on a Java virtual machine, and Eclipse defaults to no virtual machines, so if you don't have a Java virtual machine installed on your machine (not installed on a typical Windows machine), you'll have to install one, By the way, installing a Java Virtual machine has J2SDK and j2re to choose from, J2sdk contains j2re, additional source programs, documents for Java developers to use, and more than J2re, Eclipse's operation as long as j2re support on it, Therefore, it is recommended to install a j2re, version according to eclipse instructions, j2re1.3.1 above can be ...
First, installation
The first time to use Eclipse to develop PHP projects, installation or will take a certain period, a careful look at this article, you can save a lot of time. First of all. The Eclipse project is developed in Java, so it needs to run on a Java virtual machine, and Eclipse defaults to no virtual machines, so if you don't have a Java virtual machine installed on your machine (not installed on a typical Windows machine), you'll have to install one, By the way, installing a Java Virtual machine has J2SDK and j2re to choose from, J2sdk contains j2re, additional source programs, documents for Java developers to use, and more than J2re, Eclipse's operation as long as j2re support on it, Therefore, it is recommended to install a j2re version, according to the description of Eclipse, j2re1.3.1 above can be, generally downloaded from the Internet is j2re1.4.x.
Eclipse is a very good development environment, Java support is the most powerful, but he designed a plug-in-oriented structure, to install a plug-in, he can well develop C + + programs or PHP programs, or even UML. Here, we are going to use Eclipse's plugin, named PHPEclipse. This plugin provides the creation of PHP Engineering, PHP syntax highlights, PHP code automatic completion, as well as from the help to exhale PHP documents and other very useful functions, there is also worth mentioning is that the development of PHP is generally a Web page, this plug-in with a phpbrowser, when you save the PHP program , the Web page automatically refreshes, which saves you every time you modify the program code to see the results of the operation to switch to another window to refresh a trouble. Of course, I thought it would be nice to run the PHP program with the Eclipse Console window, to have the feeling at the WIN2000 command prompt, unlike other software such as Zend Studio or edit Plus, until all the programs were running, to show the results. It was really cool. Of course want to run the web-based PHP program, apacheiis you have to install yourself, PHP also have your own installation and configuration, PHPEclipse will not be arranged for you, not to expect eclipse, perhaps it does not know what is called PHP! However, there is a wampp software package, download it down a decompression of everything is done, phpeclipse it is compatible with.
Said so much, may have already said you impatient, which have so trouble? Don't worry, as long as you've tasted the benefits of using eclipse to develop PHP, you may soon be in love with him! And, all of this is free, do not need to play patches, do not download the registration code-).
Now let's install it step-by-step.
The first step, download installation j2re or J2SDK.
Step two, download eclipse
and extract to D:\ disk, automatically generate Eclipse directory
Step three, download PHPEclipse
and copy to the D:\eclipse directory, right-click, extract to the current directory, will be extracted from the plugins and features directory of all content, respectively, in the Eclipse directory in the Plugins and features directory (since the supplement).
Step fourth, start eclipse
You can start eclipse by double-clicking Eclipse or by entering eclipse at a command prompt
The following steps are optional, it is recommended that the first installation do not do the following, and so on eclipse some familiar with the following operations, WAMPP is to install the apache,mysql,php, the installation of DBG plug-ins to debug the PHP program, These plug-ins can be installed in the future when needed.