in reply to cgi or mod_perl

On a low traffic site, it doesn't really matter how efficient your scripts are. Use CGI. Or if you don't know Perl at all yet, you might do the unthinkable and learn some basic PHP, since PHP is easier to learn and runs more efficiently than CGI. You'll want to know both eventually anyway.

Replies are listed 'Best First'.
Re^2: cgi or mod_perl
by venk (Acolyte) on Dec 24, 2005 at 21:06 UTC
    No matter what your server load, cgi scripts can be a little sluggish IMHO, especially if they start opening up database connections and the like. If your traffic is low, your server will surely survive, but your users won't be impressed.
Re^2: cgi or mod_perl
by lRem (Scribe) on Dec 24, 2005 at 22:36 UTC
    You can also run PHP as CGI, and I wouldn't be so sure that CGI PHP runs more efficiently than CGI Perl. Basicaly any mod_something is more efficient than CGI something. Also I'm not so sure which one is easier to learn, but this is probably a question of preferences.
    --
    Someday, people who know how to use computers will rule over those who don't. And there will be a special name for them: secretaries. -Dilbert quote
Re^2: cgi or mod_perl
by Anonymous Monk on Dec 25, 2005 at 13:23 UTC
    "since PHP ... runs more efficiently than CGI"

    Is that true? I did some test to sort 1 million numbers and Perl runs much faster than PHP. However, the PHP zealots said that's because Perl is optimized for loop code and PHP is not good at that. They also said that PHP is more effecient to generate web pages.

    Another question is that, I just thought PHP as a programming language like Perl. But CGI itself is not a language, so we can't compare PHP with CGI IMHO.