: This article mainly introduces how to build a PHP environment using Eclipse in the standard edition. For more information about PHP tutorials, see. Build a PHP environment using Eclipse in the standard edition
-- @ Liang WP
Abstract: Build a PHP environment using the standard version of Eclipse.
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, you can see PHP-related options when creating a project and creating a 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, inApacheClick Config in the row. the drop-down box is displayed. select the third one.Apache(Httpd-xmapp.conf), then insert a piece of configuration, the first sentence is to set an alias for this PHP project, convenient access in the browser address bar, below is the location of the specified PHP project. Save it.
7. run PHP
InApacheIn that 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 describes how to build a PHP environment with the standard version of Eclipse, including Apache content, and hope to be helpful to friends who are interested in PHP tutorials.