in reply to Why they choose to lie about PHP over Perl

"This is ABSURD. Embedding Perl in HTML is TRIVIAL with mod_perl, if that's what you really want to do, and MANY other more powerful techniques exist. From Perl Server Side Includes:"

That's the problem: you need mod_perl for any of that fancy stuff and mod_perl needs its own server. Otherwise you're stuck with old, inefficient CGI. So long as that's the case, PHP will remain the best choice for small-medium sites. (I agree with your other points, though.)

  • Comment on Re: Why they choose to lie about PHP over Perl

Replies are listed 'Best First'.
Re^2: Why they choose to lie about PHP over Perl
by perrin (Chancellor) on Aug 01, 2006 at 14:43 UTC
    Not true. You don't need mod_perl to embed Perl in HTML. You can run Mason or several other tools for this under CGI. You can also run under FastCGI, which is what people sometimes do with PHP these days.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^2: Why they choose to lie about PHP over Perl
by eric256 (Parson) on Aug 01, 2006 at 14:43 UTC

    In order to use PHP you have to have PHP installed too...that just seems like a weird argument. If mod_perl was installed as often as mod_php on web hosts then there wouldn't be as big a difference. Hopefully someone, somewhere is working on an easier to use/install mod_perl ;)


    ___________
    Eric Hodges
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^2: Why they choose to lie about PHP over Perl
by Anonymous Monk on Aug 03, 2006 at 00:10 UTC
    Here's an example of an ISP restricting PHP to CGI on shared hosts, quoted from PHP Safe Mode, problems and work-arounds:
    For complex security reasons, (mt) Media Temple's various hosting solutions operate PHP in what is known as "safe mode". This is necessary for the safe running of PHP enabled web sites in a shared server environment...

    Safe mode imposes several limitations that might be causing your scripts to not function as anticipated...

    Please note that many "ready-made" PHP scripts, such as Gallery or ***NUKE, use the system () function to copy files...

    One known workaround on the (ss) Shared Server systems is to use an .htaccess file to force your php scripts to run in "CGI Mode"...

    Customers requiring a hosting solution without the restrictions of PHP safe mode should consider (mt) Media Temple's other family of hosting products such as the (as) Appliance-Server, or (ds) Dedicated-Server.

    "Most ISPs are offering PHP through either CGI or FastCGI (mod_php has all the same security issues mod_perl does)."-perrin

    A reply falls below the community's threshold of quality. You may see it by logging in.