只利用 phpstudy 如何运行PHP文件 超详细教程
2022-07-28 15:09:43
213
{{single.collect_count}}

1.先编写好PHP代码,我这里用记事本简单写了一个
在这里插入图片描述

2.打开phpstudy,检查下有没有下载PHP环境

在这里插入图片描述
启动Apache
在这里插入图片描述3.把编写好的PHP文件复制到phpstudy目录下的www文件中。

注:phpstudy可以通过 网站——管理——打开根目录 快速定位到WWW目录,如下图所示。

在这里插入图片描述

在这里插入图片描述

4.在浏览器中输入http://localhost/1.php 即可运行所编写的PHP文件了,如下图所示:
在这里插入图片描述

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}