从.Net迁移到PHP [英] Migration from .Net to PHP

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

问题描述

我有一个使用ASP.NET编写的代码,我想将其转换为PHP,而不必重写代码。是否有免费的转换工具来协助转换?

I have a code written using ASP.NET and I want to convert it to PHP whithout having to rewrite the code. Is there a free converting tool to assist in converting ?

推荐答案

没办法。这与将直升机转换为购物车相同。我知道你可能需要PHP,因为支持PHP但不支持ASP.NET的Web托管可能要便宜得多,但是你只需要从头开始编写它。



-SA
No way. This is the same as to convert a helicopter to a shopping cart. I understand that you might need PHP because the Web hosting supporting PHP but not ASP.NET could be much cheaper, but then you simply need to write it all from scratch.

—SA


嗨SR1 Degaonkar,遗憾的是没有转换工具(至少据我所知),但请注意PHP提供了一个所谓的DOTNET class。

这个类使你能够创建和使用.NET程序集类。



所以简而言之,如果你有(或者很容易) )将您的业务逻辑与表示层分开,然后您就可以在PHP中使用相同的逻辑层。



这里是它的文档,也是这里是关于它是如何工作的更详细的解释。

但是我应该警告你这个方法基本上使用COM我ssaging系统,所以你可以预期它会导致非常慢的性能。
Hi SR1 Degaonkar, unfortunately there is no conversion tool (at least to my knowledge), however note that PHP offers a so called "DOTNET" class.
This class enables you to create and consume the .NET assemblies classes.

So in short if you have (or can easily) separate your business logic from the presentation tier then you would be able to consume that same logic tier in PHP.

Here is the documentation for it, also here is some more, detailed, explanation on how this works.
But I should warn you that this approach basically uses a COM messaging system so you can expect that it will result in very slow performances.


第二个想法是使用PHP for .NET,Phalanger: http://www.php-compiler.net [ ^ ]。



但是,如果你已经拥有ASP.NET站点,我就不会看到迁移到PHP的原因。也许您需要在没有ASP.NET支持的情况下使用托管,但是您需要从头开始创建所有PHP代码。这取决于你的情况。



-SA
The second idea is using PHP for .NET, Phalanger: http://www.php-compiler.net[^].

However, if you already have ASP.NET site, I would not see a reason for migration to PHP. Perhaps you need to use the hosting without ASP.NET support, but then you would need to create all PHP code from scratch. It depends on your situation.

—SA


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

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