Web Hosting Talk







View Full Version : Converting Perl (CGI) to PHP


[JZ]
01-21-2006, 05:53 AM
Hi All,

Hope someone can help or point me in the right direction.
I know perl is similar to php in some ways, but is it possible to convert perl to php easily?
Is there an application that will do it out there or some sort of translater?
You answers would be appreciated.

Many thanks.

J

Burhan
01-21-2006, 06:58 AM
I am not aware of one that does from perl to PHP. Why do you want to convert?

[JZ]
01-21-2006, 07:51 AM
I would like to run websites on php & mysql, instead of perl and html.

Burhan
01-21-2006, 08:13 AM
If a site is running perfectly well using perl, it just better to leave it alone (or just add the mysql bits).

You will not find a translator program that does what you seek (to any sort of accuracy). You will need to hire someone to do the manual conversion, and even then -- if all you want is mysql integration, its cheaper to integrate it into the perl code that you already have, than to convert the site completely to php and mysql.