gpt4 book ai didi

php - 为什么 IIS 不执行我站点根目录 index.php 文件的 PHP 代码?

转载 作者:可可西里 更新时间:2023-10-31 23:59:55 24 4
gpt4 key购买 nike

IIS 正在发送 <?php ... ?>将代码发送到浏览器而不是执行它。

但是,只针对根 http://domain.com/index.php文件。

该文件夹中的所有其他 .php 文件和子文件夹中的 index.php 文件均按预期执行。

如何让我的根 index.php 代码执行?


更新:“index.php”是我网站的默认文档...

alt text http://img412.imageshack.us/img412/4130/defaultdocumentmt9.gif

最佳答案

看来您已经正确配置了您的处理程序。如果您使用 <? ... ?>确保你有 short_open_tag = On在你的 php.ini 中。

关于php - 为什么 IIS 不执行我站点根目录 index.php 文件的 PHP 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/188853/

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