Home > Backend Development > PHP Tutorial > Detailed explanation of how to configure the php environment and run php code in eclipse

Detailed explanation of how to configure the php environment and run php code in eclipse

(*-*)浩
Release: 2023-04-06 17:50:02
forward
17706 people have browsed it

This article will talk about how to run php code in eclipse, and introduce the method of configuring the php environment in eclipse. I hope it will be helpful to everyone.

Detailed explanation of how to configure the php environment and run php code in eclipse

eclipse is a very easy-to-use development tool. Although everyone always thinks that it is used to develop Java, as long as you download its prepared plug-ins, it can be used in other languages. It can also be developed. Let’s take a look.

Prerequisite: Download and install a basic version of Eclipse

Open: https://www.eclipse.org/downloads/ Find: Eclipse IDE for Java EE Developers , and then select the version corresponding to the operating system.

Configure and write php in eclipse

Install the Eclipse PHP development environment (PDT)

Download address: http://www.eclipse.org/pdt/index.html

Steps: In Eclipse, menu: Help -> Install New Software In work with, enter the installation source: http://download .eclipse.org/tools/pdt/updates/3.7

Detailed explanation of how to configure the php environment and run php code in eclipse

Just restart after the installation is complete.

Create a new PHP project

Detailed explanation of how to configure the php environment and run php code in eclipse

Use XAMPP

Detailed explanation of how to configure the php environment and run php code in eclipseI directly Changed the path

Detailed explanation of how to configure the php environment and run php code in eclipseDetailed explanation of how to configure the php environment and run php code in eclipse

Detailed explanation of how to configure the php environment and run php code in eclipse

Yesterday when I built it, it was normal to access the one that comes with xampp/htdocs, but I changed it to my root. The directory is 403

The reason is that the default user group of apache is deamon, which needs to be modified to the user name of your own mac. Also in the httpd.conf file, user daemon is changed to user yourname

Detailed explanation of how to configure the php environment and run php code in eclipse

Okay, it’s out. certainly:

Detailed explanation of how to configure the php environment and run php code in eclipse

The above is the detailed content of Detailed explanation of how to configure the php environment and run php code in eclipse. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template