简体   繁体   English

如何使用 XAMPP 的 apache 运行 php?

[英]How to run php with XAMPP's apache?

So I have a.php file, I wanted to see it's output.所以我有一个.php文件,我想看看它是output。 So, I open my xampp.所以,我打开了我的 xampp。 I press the start button 'start' for apache.我按下 apache 的启动按钮“开始”。 I go to my browser and type localhost/filename The problem is, instead of seeing the file directory of my computer.我 go 到我的浏览器并输入 localhost/filename 问题是,而不是看到我的计算机的文件目录。 I saw the output of my php.我看到了我的 php 的 output。 I thought it was something that I shouldn't be concerned about but then when I do some changes to my code, and I refresh my output on the browser nothing happens like nothing changes even though I erase the.css file in my php code.我认为这是我不应该担心的事情,但是当我对代码进行一些更改并在浏览器上刷新我的 output 时,即使我删除了 ZE1BFD7623621E4069CEEZAC0 中的 .css 文件,也没有任何变化。

这是图像

See the link and yeah, I type the directory but I was directed to my output in instant and my apache doesn't work like this like a month ago.看到链接,是的,我输入了目录,但我立即被定向到我的 output 并且我的 apache 不像一个月前那样工作。 Should I update my apache?我应该更新我的 apache 吗? or what?或者是什么?

This is xampp for windows这是 windows 的 xampp

DID YOU open XAMPP Control Panel打开XAMPP控制面板了吗

DID YOU 'Start' Apache, 'Start' MYSQL'开始' Apache, '开始' MYSQL

DID YOU click 'Explorer' (right side of window)您是否单击了“资源管理器” (窗口右侧)

DID YOU delete the default index.php file您是否删除了默认索引.php文件

DID YOU type in your browser 'localhost' and press ENTER?您是否在浏览器中输入了“localhost”并按 ENTER?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM