如何使用xampp在hbuilder中运行php文件

首先打开xampp,点击图示按钮,打开apache和mysql服务
如何使用xampp在hbuilder中运行php文件

接着打开xampp根目录文件夹,找到一个htdocs文件夹
如何使用xampp在hbuilder中运行php文件

打开它,新建一个文件夹,命名为test(命名随意)
如何使用xampp在hbuilder中运行php文件
我们在hbuilder中打开该文件夹
如何使用xampp在hbuilder中运行php文件

新建一个php文件
如何使用xampp在hbuilder中运行php文件
打开它,输入一个echo语句,ctrl+s保存
如何使用xampp在hbuilder中运行php文件
打开浏览器,在地址栏中输入localhost/test/index.php
如何使用xampp在hbuilder中运行php文件