hbuilderx 如何部署本地服务器打开php,有手就行。

hbuilderx 如何部署本地服务器打开php。

  1. 第一步打开自己的服务器,我用的是XAMPP,具体下载参照百度经验,建议默认安装路径,注意 有的人80端口是被本机软件占用的,这个时候改个配置就行(80就是你的端口号)
    更改教程:
    https://blog.****.net/weixin_30500473/article/details/95053347hbuilderx 如何部署本地服务器打开php,有手就行。
  2. 给hbuiderx下载php插件。(点击-工具-插件安装)

hbuilderx 如何部署本地服务器打开php,有手就行。
然后下载php。
hbuilderx 如何部署本地服务器打开php,有手就行。

  1. 打开H builderx 的设置,点击运行配置。
    hbuilderx 如何部署本地服务器打开php,有手就行。
    然后更改描红处。
    因为我的是 80端口,所以,后面填80。
    http://localhost:80

hbuilderx 如何部署本地服务器打开php,有手就行。

  1. 把要运行的php文件夹一定要放到xampp文件下的htdocs的 文件夹里。
    hbuilderx 如何部署本地服务器打开php,有手就行。
    xk就是我的php文件夹
    hbuilderx 如何部署本地服务器打开php,有手就行。
    5.然后hbuiderx打开项目
    hbuilderx 如何部署本地服务器打开php,有手就行。
    hbuilderx 如何部署本地服务器打开php,有手就行。
    6.这个时候没有意外的话你点击自己的php文件运行就能出现结果。
    hbuilderx 如何部署本地服务器打开php,有手就行。