gpt4 book ai didi

php - 下载文件时 index.php 未打开和运行

转载 作者:可可西里 更新时间:2023-11-01 12:57:15 29 4
gpt4 key购买 nike

当我尝试导航到位于 http://localhost/project/admin 的 PHP 脚本时,我希望在我的网络浏览器中看到脚本结果。

相反,我看到了一个用于下载文件的对话框,其中包含以下消息:

You have chosen to open <filename>, which is a: application/x-httpd-php from: http://localhost
What should Firefox do with this file? Open with...Save... • etc.

知道发生了什么吗?

最佳答案

服务器上没有正确安装 PHP 或者 Apache 没有使用 mod_php

在 IIS 中发生这种情况。我会说 mimetype 设置不正确并且服务器不知道如何处理扩展名“.php”

关于php - 下载文件时 index.php 未打开和运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2447021/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com