Converting asp to php

They have: 140 posts

Joined: Nov 2003

I have a site that is programmed in asp, but want to
move it to a hosting company that only supports php.

How difficult is it to convert the program from asp to php?

Is there a utility that you can run the files through that
can make the conversion...?.. or am I stuck with asp hosting?

He has: 1,758 posts

Joined: Jul 2002

I don't think theres any automatic way to convert one to the other. They both have very different syntax. The only way to do it would be to manually rewrite the code in the new language.

Andy

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

asp2php, I think, is a script that does that.

Or maybe it was php2asp.

My memory is failing me at this moment. A couple years ago, I was in a similar situation when I worked on the school intranet site. I was competent in ASP and not so much in PHP, while another member working on the project was a PHP person only. We found some scripts to convert one of our's legacy code to the other language... but I can't recall which way it was.

Google it.

Mind, these convertors are not necessarily 100% reliable. Although they crunch most of the code, you'll likely have to refine much of the results yourself.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.