PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站中一起运行吗?

Can PHP and ASP.Net run together within the same web site in IIS 7.5?(PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站中一起运行吗?)
本文介绍了PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站中一起运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我们网站的一部分是用 PHP 完成的,我们网站的一部分是用 ASP.Net 完成的.我们刚刚使用安装了 IIS 7.5 的 Windows Server 2008 R2 设置了一个新的 Web 服务器.

A portion of our site is done in PHP and a portion of our site is done in ASP.Net. We just set up a new web server with Windows Server 2008 R2 which has IIS 7.5 installed.

我知道 IIS 7+ 支持 PHP,但是 PHP 和 ASP.Net 可以在 IIS 中的单个网站中并行运行,或者我必须为 PHP 页面设置一个网站和一个网站吗?ASP.Net 页面的站点?

I understand that IIS 7+ supports PHP, but can PHP and ASP.Net run side-by-side within a single web site in IIS, or would I have to set up one web site for the PHP pages and one web site for the ASP.Net pages?

推荐答案

您应该能够在同一个站点中运行两者,但请确保该站点的 AppPool 运行经典"ASP.NET 池配置.默认的 AppPool 通过 ASP.NET 路由所有内容,而您的 PHP 页面不希望这样.

You should be able to run both in the same site, but be sure that the AppPool for the site runs a "classic" ASP.NET pool configuration. The default AppPool routes everything through ASP.NET, and you won't want that for your PHP pages.

除此之外,你应该没事.查询字符串、文件和后端数据库将是在页面之间共享数据的最佳方式.

Other than that, you should be fine. Query strings, files, and back-end databases will be the best way to share data between pages.

这篇关于PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站中一起运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)