Build a PHP environment using Eclipse in the standard edition

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.