PHP网站ASPX .NET网站 [英] php website to aspx .net website

查看:111
本文介绍了PHP网站ASPX .NET网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在PHP和MySQL的一个奖励的网站。我已经几乎完成的一切,但客户端现在希望该网站是在.NET和PHP没有。大多数PHP编码完成,这是不可能的:在.NET从零开始,完成整个网站在2周。

I was working on a rewards website in php and mysql. I have almost finished everything but the client now wants the website to be in .net and not php. Most of the php coding is completed and it is not possible to start from scratch in .net and finish the whole website in 2 weeks.

我很好用PHP,但不是C#或ASPX很多知识。是否有任何机会,我可以只修改PHP页面到ASPX页面或创建新的aspx页面和重新定向?我基本线索少在这里,所以我需要一些建议。

I am good with php but not much knowledge about c# or aspx. is there any chance that i can just modify the php pages into aspx pages or create new aspx pages and re-direct? I am basically clue-less here so i need some suggestions.

鸭preciate提供任何帮助。

Appreciate any help provided.

推荐答案

说明你的客户,这是不可行的。此外,他们现在就必须一大堆钱支付给微软的服务器堆栈。除了PHP在Windows上运行正常,与Apache或IIS。

Explain to your client that this is not feasible. Besides, they'll now have to pay a whole lot of money to Microsoft for the server stack. Besides PHP runs fine on Windows, with Apache or IIS.

如果他们仍然不会做......根据自己的知识水平,你可以只是假的PHP页面的ASPX。这的确是很容易做到与Apache。只是下面的行添加到您的的.htaccess 文件:

if they still won't do it... Depending on their knowledge level you can just "fake" your PHP pages as ASPX. That's really easy to do with Apache. Just add the following line to your .htaccess file:

将AddType应用/ X的httpd - PHP的.aspx

和重命名你的所有.php文件为.aspx。有时客户只是顽固,需要一个特定的技术,但不知道他们为什么要这么做。它通常是因为有人告诉他们,XYZ是好。

And rename all your .php files to .aspx. Sometimes clients are just stubborn and want a particular technology but have no clue why they want to do it. It's usually because "someone" told them it XYZ was "better."

编辑:没有什么从新网站集成到其现有的ASPX的网站,即使他们没有使用相同的技术阻止你。我想他们有一个MSSQL的后端,和PHP可以连接到。随着一点点的工作(和饼干),你甚至可以让它保持无缝登录这两个网站用户。

There's nothing stopping you from integrating the new website into their existing ASPX website, even though they are not using the same technology. I suppose they have a MSSQL backend, and PHP can connect to that. With a little work (and cookies), you can even make it seamlessly keep the user logged into both sites.

这篇关于PHP网站ASPX .NET网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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