http://www.perlmonks.org?node_id=280373


in reply to Why mod_perl is good for PHP

There are quite a number of perl based webservers out there. Ofcourse I'm extremly biased but I'm pretty confident mod_perl does things to Apache that no other programming language does with Apache (besides C ofcourse)

Java might be the hype of the late 1990s and the early 2000 but it's still as slow as hell. It needs LOADS of hardware (which means a dedicated server). Also, Java is extremly bloated (initializing 3 classes to read from a file is just a tad too much of the good stuff for me). Using Servlets/JSPs/WARs in Java makes it even more complicated. If I was an individual or an organisation and I needed some 'dynamic' site but wouldn't want to spend some hard cash on hardware, I would not even consider Java.

For PHP, as far as I know, Zend isn't even a true webserver engine... ofcourse you can (correct|downvote) me if I'm wrong.

Over the past few months, I spend quite a few thousands lines of perl code on mod_perl and I love it. You can do dynamic sites with minimum effort in mod_perl. There are a few template tools that integrate quite nicely and give you the development speed and flexibility, not to mention a rather short development time frame.

Just my biased €0.02

Greetz
Beatnik
... I'm belgian but I don't play one on TV.

Replies are listed 'Best First'.
Re: Re: Why mod_perl is good for PHP
by Anonymous Monk on Aug 03, 2003 at 01:00 UTC
    I'm pretty confident mod_perl does things to Apache that no other programming language does with Apache (besides C ofcourse)

    See mod_python.

Re: Re: Why mod_perl is good for PHP
by revdiablo (Prior) on Aug 03, 2003 at 21:31 UTC

    I don't have much to say about the rest of your post, but it strikes me odd that you took this as an opportunity to rail against Java. The only reason he even brought it up was to further explain his point. I see nothing in the OP talking about the relative merits or problems with that language. Curious you devoted a whole paragraph to unnecessarily pointing out its flaws.

      I actually spent the past 5 years doing some horrible Java tricks, including the whole webserver idea. I believe I know enough Java to judge it... I don't know PHP very well... I usually don't spend longer than 30 minutes looking at PHP code. I see some differences with perl and things that might be considered bad but I know too little about it to make an unbiased judgement. I hear some nice things about it, I hear some bad things about it. At the moment, with the very little I know about PHP, I'd still go for PHP in a PHP vs Java match. You can call me script addict any time soon now.

      Oh, BTW.. I'm not judging Python since I don't know it... but I CAN give you an overview of Things that suck about(TM) COBOL

      Yes, so I misspelled Python (thanks dws) but it was late :)

      Greetz
      Beatnik
      ... I'm belgian but I don't play one on TV.