为什么IIS不执行我的站点root index.php文件的PHP代码? [英] Why isn't IIS executing the PHP code of my site root index.php file?

查看:123
本文介绍了为什么IIS不执行我的站点root index.php文件的PHP代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS实际上是向浏览器发送<?php ...?> 代码而不是执行它。

IIS is literally sending <?php ... ?> code to the browser rather then executing it.

但是,仅适用于根 http://domain.com/index.php 文件。

But, only for the root http://domain.com/index.php file.

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

All other .php files in that folder and index.php files in subfolders execute as expected.

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

How can I get my root index.php code to execute?

更新:index.php是我网站的默认文件......

Update: "index.php" is a Default Document of my Web Site...

替代文字http://img412.imageshack.us/img412 /4130/defaultdocumentmt9.gif

推荐答案

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