Re: Converting Perl to PHP?
| From: | aldham at lennon dot postino dot com | Date: | Wed, 05 Jul 2000 00:27:28 +0000 |
| Subject: | Re: Converting Perl to PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4849@lists.php.net to get a copy of this message | ||
Having recently done the exact reverse, the big change is to change all the
curly brackets, { , to square brackets, [ .
Then the DBI calls have to be changed.
But as much as I like PHP, I have to wonder why you would convert from Perl
to PHP. I went the other way because I felt that PHP was bogging down under
load. When I ran the unix command top, I could see that serving up a fairly
intensive page was pinning out the CPU for 2 to 3 seconds. So I converted to
Perl, and then to Mod_Perl. Mod_Perl is over 20 times faster than PHP.
I have put my benchmarks generated with the apache utility ab up at
www.aldham.net/benchmarks/BenchMarks.php3 . All three benchmarks were run
on the same web server, same binary, same database underneath (Postgres).
--
Danny Aldham Providing Certified Internetworking Solutions to Business
www.postino.com E-Mail, Web Servers, Web Databases, SQL PHP & Perl
>
> well, if you have some skills in Perl, why not write a script to help in the
> conversion. i'd be willing to help...
>
> clayton
>
> "K" <kevsurf@MailAndNews.com> wrote in message
> news:39626A10@MailAndNews.com...
> > Hello,
> >
> > I have a set of script that are written in Perl and I would like to
> convert
> > them into PHP scripts. I was wondering if anyone new of any programs that
> > would do that automatically, kind of like the ASP2PHP tool.
> >
> > Any help is appreciated.
> >
>