是否可以在本地计算机上运行.php文件? [英] Is it possible to run .php files on my local computer?

查看:94
本文介绍了是否可以在本地计算机上运行.php文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
本地计算机上的PHP服务器?

Possible Duplicate:
PHP server on local machine?

是否可以在本地计算机上运行.php文件?我知道如果打开Web浏览器并将文件位置输入HTML文件的URL,该HTML文件将运行并显示.有没有办法对.php文件做同样的事情?

Is it possible to run .php files on my local computer? I know if i open up a web browser and enter the file location into the URL for HTML files, the html file will run and display. Is there a way to do the same with .php files?

推荐答案

确定只需要设置本地Web服务器.查看XAMPP: http://www.apachefriends.org/en/xampp.html

Sure you just need to setup a local web server. Check out XAMPP: http://www.apachefriends.org/en/xampp.html

这将使您在大约10分钟内启动并运行.

That will get you up and running in about 10 minutes.

现在有一种无需安装服务器即可在本地运行php的方法: https://stackoverflow.com/a/21872484/672229

There is now a way to run php locally without installing a server: https://stackoverflow.com/a/21872484/672229

这篇关于是否可以在本地计算机上运行.php文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆