dousi8559 2011-02-12 22:37
浏览 125
已采纳

PHP文件 - 下载而不是在浏览器中加载?

I have this file, index.php. I FTP'd it to my web server. When I go to the page mydomain.com/index.php my browser downloads the php file instead of loading the page.

The only code in the php file is <?php echo "hello world;" ?>.

Why isn't the page loading as intended?

  • 写回答

4条回答 默认 最新

  • dongzhiyong8577 2011-02-12 23:50
    关注

    If you have PHP installed on the server already, you should ensure that Apache recognizes it by configuring httpd.conf properly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部