The solution to the problem that eclipse cannot run php files: first download PHPEclipse and unzip it; then copy [site.xml] to the root directory of Eclipse and restart Eclipse; finally add a PHP view in Eclipse.
eclipse cannot run the php file solution:
1. Step 1: Search PHPEclipse on Baidu and click "PHPEclipse" enters the official webpage of PHPEclipse.
##2. Click "Getting PHPEclipse>>Binary&Source>> 1.2.3 Binary Download" on the right side of the page to jump to the PHPEclipse download page and select the download file. Save the location and start downloading. 3. What is downloaded here is the PHPEclipse-1.2.3.200910091456PRD-bin.zip compressed file. After decompression, it is found that the contents include: two folders features and plugins , an xml file site.xml. 4. Copy the contents of features and plugins to the corresponding folder of Eclipse, and copy site.xml to the root directory of Eclipse. Then start Eclipse (if Eclipse is already started, restart Eclipse to make the newly added files take effect). 5. As shown in the figure, select "Window>>Open Perspective>>Other..." in order to open the view selection window. 6. In the "Open Perspective" (view selection) window, find the "PHP" option and double-click it to add the PHP view in Eclipse 7. After the addition is successful, you will see the "PHP" view option in the upper right corner of Eclipse. Click the button to switch Eclipse to the PHP view.If you want to learn more about programming, please pay attention to thephp training column!
The above is the detailed content of What should I do if eclipse cannot run php files?. For more information, please follow other related articles on the PHP Chinese website!