This article describes how to build a PHP environment in Eclipse. if you are interested, refer
1. download the PHP plug-in of Eclipse
Baidu searched phpeclipse and saw a result with the words SourceForge.net. click it and find the Download button. then, the Download will start in 5 seconds.
II. install the PHP plug-in of Eclipse
After the plug-in is downloaded, decompress the package and. delete xml (most plug-ins do not need to delete this file, but PHPEclipse must delete). finally, copy the entire folder to the dropins folder of Eclipse and restart Eclipse.
3. create a PHP project and a PHP file in Eclipse
If the plug-in is successfully installed, PHP-related options are displayed when you create a project or file. Then write a few lines of code in the PHP file.
4. download the PHP runtime environment
Baidu searches for xampp. in the first result, click normal download.
5. install the PHP runtime environment
Run the installation package. if you see a warning, ignore it. Click OK to go to the next step.
The installation options are simple for beginners. you can simply select all of them. these tomcat and mysql are all installed in the xampp directory and won't confuse your original tomcat and mysql, do not use them.
6. configure the PHP runtime environment
After the installation is successful, run xampp \ xampp-control.exe, in the Apache Line, click Config, will pop up a drop-down box, select the third Apache (httpd-xmapp.conf), and then insert a piece of configuration, the first sentence is to set an alias for this PHP project to facilitate access in the address bar of the browser. The following describes the location of the PHP project. Save it.
7. run PHP
In the Apache Line, click Start, and then several numbers appear in PID (s) and Port (s), which indicates that the startup is successful.
Enter http: // 127.0.0.1/myphp/home. php in the browser to view the previously written page.
The above are the detailed steps for setting up the PHP environment in the standard version of Eclipse. you only need to follow the steps and step by step to have your first php page.