How to run and set up hbuilderx's php

Release: 2023-02-28 10:18:01
Original
26511 people have browsed it

How to run and set up hbuilderx's php

1. First of all, of course, you need to open the environment. First, find the folder where XAMPP is installed, click to open the "xampp-control" file, click start ""Open" Apache" and "MySQL" ”

How to run and set up hbuilderxs php

How to run and set up hbuilderxs php

2. In the installation path of XAMPP, create a new project phpinfo (that is, a folder) under the htdocs folder

How to run and set up hbuilderxs php

3. Open the Hbuilder software, select "File" - "Open Directory"

How to run and set up hbuilderxs phpSelect the phpinfo file you just created

How to run and set up hbuilderxs php

4. Install the plug-in that supports PHP on HBuilder, click "Tools" - "Plug-in Installation" - choose to install the "Aptana php" plug-in (I have installed it here)

How to run and set up hbuilderxs php

After completion, follow the prompts to restart the HBuilder software

5. Configure the HBuilder external server (the key point of this article)
First switch to the "View while changing mode" in the upper right corner ”, then click the small triangle and select “Set up web server”

How to run and set up hbuilderxs php

Select “External Server” – “New

How to run and set up hbuilderxs php

Fill in the name and URL address (http://localhost:8081), where 8081 is the port I modified when installing XAMPP, which can be filled in according to your actual situation.

How to run and set up hbuilderxs php

Go back to "web server" - select the PHP class file as the external server you just created

How to run and set up hbuilderxs php

In this way, the external server is basically configured

6. Create a new php file for testing
Create a new PHP file in the phpinfo just now,

How to run and set up hbuilderxs php

Write the code

1How to run and set up hbuilderxs php

Open "Run" - "Run Configuration"

1How to run and set up hbuilderxs php

Find "PHP Page Web" on the left, right-click and select "New"

1How to run and set up hbuilderxs phpClick "Apply"-Click "Run". If the following interface appears on the browser, the entire process is successful

1How to run and set up hbuilderxs php

The above is the detailed content of How to run and set up hbuilderx's php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!