[Ilugc] apache and php

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Tue Aug 23 04:11:05 2005

On 21/08/05, peevee <peevee.chaitanya@xxxxxxxxx> wrote:

I dont understand one thing,
why are people still after PHP when JSP and other things have come up?
is there any advantage?
PHP is scripting, so it should be more resource hungry on server,
rather than jsp etc.
any comments or correction??

Adding to what others have said:

First of all, PHP is not scripting - it is embedding. The PHP
interpreter (mod_php) resides within the web server's address space
(contrast CGI). So is JSP - but the difference is that the JSP DSO
(mod_jk2) passes the interpretation to a full-fledged JVM running as
another service elsewhere (typically on the same box) using a protocol
called AJP. Sort of like mod_fastcgi. Resource-hunger etc. I guess
depends on individual website's source code.

Having said that, the reason PHP is more popular I guess is because it
is very easy to develop websites in PHP. Even though the JSP way of
doing things is probably better than the PHP way.

Binand

Other related posts: