First create a new project in the wwwroot directory of your apache or nginx (or point the wwwroot address to the address of your project in the configuration file)
Related recommendations : "php Getting Started Tutorial"
Because the built-in web server of HBuilder can only read simple HTML, js, css, and does not have the ability to parse PHP, you need to configure an external professional web server to parse PHP. .
So you need to search for "web server" in "Tools" - "Options", create a new external web server, and configure the parameters of external web servers such as tomcat.
The above is the detailed content of How to use php with hbuilder. For more information, please follow other related articles on the PHP Chinese website!