Here are some links to give you a decent overview of converting ASP to PHP. I think there are still some ASP programmers out there who are afraid to take the plunge so hopefully this will make it easier:
- Part 1: PHP, Javascript and VBScript Language Summary
- Part 2: PHP, JScript and VBScript Function and Class Syntax
- Part 3: PHP Equivalents for ASP Objects
You’d be suprised how easy it is to convert from the former to the latter, mainly because PHP is a much richer language with a function for just about everything you need that you’d have to write by hand as an ASP coder.
There are the obvious tools like ASP2PHP, and quite a few similar projects, but it’s most likely quicker to do the job by hand.
Last year I went out to Latvia for just such a project, there were hundreds of these ASP pages in what was a huge web app, all procedural of course, my favourite, but we managed to squeeze quite a decent PHP project out of it in the end.
More helpful than any tutorial or autotranslating tool was just a simple VBscript api doc, which is easy to get once you have the right search term.
December 1st, 2009 at 5:46 am
Hello,
the above link to the linuxgazette does not bring up the article in question — and search through the entire site doesn’t find it, so maybe it was removed …
Here is another site with a similar migration summary:
http://phplens.com/phpeverywhere/node/view/30
December 1st, 2009 at 10:59 am
Robert, thanks for pointing out the expired link, I’ve updated the article a little.