You are here: Re: Convert Perl/cgi To PHP « PHP Language « IT news, forums, messages
Re: Convert Perl/cgi To PHP

Posted by Andy Hassall on 06/16/05 01:19

On Wed, 15 Jun 2005 18:49:54 GMT, hope@hope.com wrote:

>1......Can you convert a Perl/cgi script into PHP?
>
>2.......If so is there any programs that can do it?
>
>3 If so what are the urls?

Machine translation from one language to another is typically not an easy
task. Compilers are one case, usually converting from a higher level language
to a lower level one (e.g. C to machine code).

Conversion between two high-level languages is harder. The only program that
can read Perl reliably is perl, and even once it's parsed, converting it to an
equivalent PHP program would, in the general case, be very hard.

There's some converters for other languages, such as asp2php, but all they
produce is an initial base that you'd have to edit heavily afterwards. And in
that case, it's coming from a much simpler language.

>4......If someone was to do this What would the cost be?
> I know "How long is a bit of string"

Since machine translation is unlikely, that means you need a programmer, in
which case the length of the piece of string depends on the program.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация