locked
Convert PHP Application to Asp.net RRS feed

  • Question

  • User-1016673089 posted

    Hi All,

    There is a requirement where I need to convert PHP Application(what ever normal php pages or wordpress) to asp.net. Please let me know if there are any readymade for conversion. Its urgent for me.  Thanks in Advance

    Friday, December 15, 2017 6:30 PM

All replies

  • User2053451246 posted

    There are no such tools.  You will have to re-write from scratch.  .Net and PHP are completely different server-side code worlds.

    Friday, December 15, 2017 7:51 PM
  • User475983607 posted

    If the PHP application does what you need then why change to ASP.NET? 

    Friday, December 15, 2017 7:53 PM
  • User-1197934900 posted

    @mgebhard , nowadays a few clients migrating to asp.net from php to make a better performance inside their application. again only few clients. 

    Saturday, December 16, 2017 8:10 AM
  • User1400794712 posted

    Hi vinay.bammidi1,

    Just like what ryanbesko said, ASP.NET and PHP are very different, using tool is not a good idea.

    There is a Migration Assistant tool, it can help you convert PHP pages and applications to ASP.NET. It does not make the conversion process completely automatic, but speeds up your project by automating some of the steps required for migration. You can refer to this article.

    https://www.asp.net/downloads/archived-v11/migration-assistants/php-to-aspnet/overview 

    Best Regards,

    Daisy

    Monday, December 18, 2017 8:54 AM
  • User541108374 posted

    Hi,

    Depending on your needs I would advise against using this particular tool. It was built in 2003 which eons ago and transfers PHP code to ASP.NET Webforms (likely 1.1 which is ancient).

    Likely your clients want to keep on running on Linux hence I would advise to go for ASP.NET Core which is the latest flavor of ASP.NET MVC but can also run on Linux. ASP.NET Webforms can't as it needs the full .NET framework.

    Kris.

    Monday, December 18, 2017 11:06 AM
  • User-1016673089 posted

    Hi Daisy,

    I am trying to install but unable to install the MSI. Facing the below error. Can you please let me know how to install this.

    Don't know how can  we install.

    Monday, December 18, 2017 1:54 PM
  • User541108374 posted

    Hi,

    I am trying to install but unable to install the MSI. Facing the below error. Can you please let me know how to install this.

    Read my former reply about this tool please.

    Kris.

    Monday, December 18, 2017 3:47 PM
  • User475983607 posted

    Again, if Wordpress or any existing CMS does what you need then why do you want to convert to ASP.NET?  If the issue is operating system then be aware that PHP can run on IIS. 

    Can you explain what problem are you trying to solve at a high level?

    Monday, December 18, 2017 3:54 PM
  • User-1016673089 posted

    Hello Everyone,

    I thank you all for your replies.

    I have a php application and I heard that there is a tool that converts the php code to asp.net code. I tried downloading the msi package and install, but unable to install the installer after installing 1.1 dotnet framework(downloaded and installed) in my windows 10 local machine. It's an urgent requirement from a client. I am unaware if that is doable or not. So, posted in this respective forum.

    Tuesday, December 19, 2017 4:03 AM
  • User541108374 posted

    Hi,

    I tried downloading the msi package and install, but unable to install the installer after installing 1.1 dotnet framework(downloaded and installed) in my windows 10 local machine. It's an urgent requirement from a client. I am unaware if that is doable or not.

    As told before forget about this particular tool. .NET 1.1 is so ancient (2003) that it's not worth the effort. Simply start from scratch and try to copy the mindset of the business logic of your PHP application.

    Kris.

    Tuesday, December 19, 2017 6:57 AM
  • User409696431 posted

    Adding to what Kris said, do NOT convert the application to framework 1.1.   You would be hard pressed to find a host that offers that, and it's not a trivial conversion to then go from 1.1 to higher frameworks.

    Decide which type of asp.net you want to use - web forms or MVC - and pick a current version of the framework. (4+)  If you are not already familiar with asp.net, web forms or MVC, you have a learning curve ahead of you.  Can you elaborate on what problem your client is trying to solve by converting a PHP application to an asp.net one?

    Tuesday, December 19, 2017 7:24 AM