Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to convert ASP to PHP

I program mostly in PHP and have a site along with other samples in ASP I need to convert over to PHP. Is there some kind of "translator" tool that can either enter lines of code or full slabs that attempts to output a close PHP equivalent?

Otherwise, is there an extensive table that lists comparisons (such as design215.com/toolbox/asp.php)

like image 527
Peter Craig Avatar asked Jun 05 '09 05:06

Peter Craig


2 Answers

It isn't perfect, but this will convert most code.

like image 75
Abinadi Avatar answered Oct 04 '22 14:10

Abinadi


I think this is a poor way to do it. Sure, a quick-reference table helps a little. But really you need to be fluent in both ASP and current PHP best practices, and envision what a good PHP design would be. The naive transliteration will just give you PHP code that thinks it's ASP. A true port will be easier to understand and maintain.

like image 20
Matthew Flaschen Avatar answered Oct 04 '22 13:10

Matthew Flaschen