php文件IS不输出到本地浏览器,只是显示代码

发布于 2025-02-04 13:33:16 字数 143 浏览 5 评论 0原文

最初,我会选择我的PHP文件,它将在本地浏览器上打开网站,我不小心将其打开到记事本,现在它只会向编辑器打开代码。有谁知道如何将文件设置更改为在本地浏览器中执行的时间? IVE试图重置Filetype关联并重置注册表编辑器中的文件扩展设置。我目前正在使用Windows 11

Originally, I would select my php files and it would open the site on my local browser, I accidently opened it to notepad and now it will only open the code to editors. Does anyone know how to change the file setting back to when it would execute in the local browser? Ive tried resetting the filetype associations and resetting the file extension settings in the registry editor. I am currently using Windows 11

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

说好的呢 2025-02-11 13:33:16

如果您不使用诸如Wamp或Xampp之类的servlet,则无法在Localhost上处理PHP文件。只要文件具有PHP扩展名,并且在Servlet的目标文件夹中,而Servlet处于活动状态(例如:如果有:如果存在如果您在浏览器中键入localhost/index.php,则www文件夹中的index.php。

If you are not using a servlet like wamp or xampp you cannot process the php file on localhost.As long as the files have a php extension and are in the target folder of the servlet, while the servlet is active (example: if there is an index.php in the www folder in wamp. It will work if you type localhost/index.php in the browser.) your php files will work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文