Home >Backend Development >PHP Tutorial >Can eclipse write php?

Can eclipse write php?

little bottle
little bottleOriginal
2019-05-09 14:34:556728browse

When the editor was in college, the teacher led us to use eclipse to write Java programs. At that time, I always thought that eclipse could only write Java. Until one day, the editor discovered that its functions are still very powerful. It can not only write Java, but also It can also be written in other languages, such as PHP.

Can eclipse write php?

Eclipse is a well-known cross-platform free integrated development environment (IDE). Initially mainly used for Java language development, Eclipse can support different computer languages, such as C, Python and PHP, by installing different plug-ins. Eclipse itself is just a framework platform, but the support of many plug-ins gives Eclipse flexibility that is difficult to achieve with other IDE software with relatively fixed functions. Many software developers develop their own IDEs using Eclipse as the framework.

Steps to configure the PHP environment on eclipse:

1. Install and configure wamp2.5 to run WAMP, and enter localhost in the browser (take the firefox browser as an example) , if the following page is displayed successfully, it means that WAMP is installed successfully.

2. Download the Eclipse for PHP installation package and extract it to a location of your choice (it is recommended not to include Chinese characters in the path), and run eclipse.exe.

3. Configure Eclipse for PHP.

4. Configure character encoding.

5. Configure XDebug.

6. Configure PHP Executables

7. Create a php file, put a breakpoint, and then select like this:

Right-click to select this php file->Debug As- >Php Web Page, eclipse automatically opens this php in the browser, and runs until the breakpoint appears

The above is the detailed content of Can eclipse write php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn