douyu0792 2010-12-22 10:06
浏览 159
已采纳

在Visual Studio 2010中运行PHP不会在浏览器中打开php文件

I have a Wordpress project that I'm developing in VS2010 (with VS.Php). When I try run tone of the php pages in the browser, I get a alert that asks how I want to open the page, or if I want to save it:
alt text
I've configured my local IIS (Windows XP, IIS 5.1) to open php files, but VS doesn't use local IIS to run projects. How can I configure IIS express that runs the VS project, to open php files?

  • 写回答

1条回答 默认 最新

  • dongxiao0449 2010-12-23 08:24
    关注

    I see that it's because the project in VS is not a PHP project.
    The way I created this project was by using Webmatrix. I created a Wordpress site in Webmatrix, and when I clicked the Launch in Visual Studio button, it created a project in Visual Studio. But apparently the solution that was created was an ASP.NET one...
    After that, I tried creating a normal PHP project (enabled by VS.php), and then PHP worked perfectly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大