[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] Perl and PHP



At 09.03 -0500 1999.12.31, Emmanuel. M. Decarie wrote:
>If  you know already Perl, is there any advantages to use PHP instead
>of Perl? Is PHP more efficient at CGIs than Perl?

It is not comparably to CGIs.  That is comparing apples and oranges.  It is
comparable only to persistent Perl process, such as in mod_perl, or parsed
HTML stuff, like PerlScript or whatever.  So that said ...

PHP is lightweight compared to Perl, I understand, so it can be faster.  It
also has database access built-in, so you don't need to load in DBI (which
doesn't matter to me).  I doubt that it is more efficient in speed, though
it is probably more efficient in memory use (mod_perl takes a good few MB
per program instance).  I am not sure how much PHP uses, but I understand
it is significantly less.  I could be misinformed.

If you have enough RAM to handle your mod_perl (or whatever you are using
Perl with) needs, then there is little reason to use PHP, unless you just
happen to like the language more (which is probably unlikely, since it is
basically a less featureful Perl).

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org