Martin,

  All the points you have listed basically compares the benfits of a
strongly typed OO language over a weakly typed non-OO language. None of the
points listed would matter to a person interested in developing a simple web
based application. But that does not answer the basic question -

 How does PHP fare in comparison to JSP/Servlets as a Server side scripting
extension for developing web based applications( Cost wise, development time
wise , documentation wise & performance wise)?

 PHP would fare the same or better in all of the above mentioned cases. The
benefit of Java lies to be reaped only when the Web App would have highgly
transactional functionalities like in a banking application.

    a. Cost-wise - Completely GPL or LGPL licensed software. Works excellent
in tandem with a free RDBMS like MySQL. Same for JSP/Servlets if using
open-source free software such as Apache Web server & Tomcat scripting
engine or JBoss application server.

    b.Development time wise - PHP really has the most beautiful syntax among
all available server side scripting languages. Learning time for the
language is minimal. Not so with JSP/Servlets( I mean to become a good
developer, OOPS , some of the worst code I have seen is from JSP/Servlets ).

    c.Documentation wise - Roughly the same for both.

    d. Performance - Definitely tilts in favour of PHP because of the
overhead of converting a JSP to a servlet java source and then compilation
into a class file. Though, this compilation is only one time upon the first
request to the JSP, it is definitely an overhead. And second, PHP is a pure
interpreted language, means PHP source is directly converted to executable
native code by the interpreting engine. Unlike java, whose intermediate
bytecode format is part native and part plain ASCII to be interpreted at
runtime. There is no functionality available in JSP/Servlets not available
in PHP. Think about it, anyone who has been working with pure java
application servers for some time would describe them as memory hungry
monsters.

Jaideep.

-----Original Message-----
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 5:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Replacing JSP with PHP?


Thats what they say about VB too!. ROTFL, no in fact ROTFLMFTO!!!!!

har HA Ha,HA ha hA ......

> -----Original Message-----
> From: fabrice Bouteiller [SMTP:[EMAIL PROTECTED]]
> Sent: 19 February 2003 11:39
> To:   [EMAIL PROTECTED]
> Subject:      Re: Replacing JSP with PHP?
>
> Excuse me, but PHP is OO language!
>
> ----- Original Message -----
> From: "Martin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 25, 2002 9:34 PM
> Subject: Re: Replacing JSP with PHP?
>
>
> > Su
> >
> > check out http://www.stachanov.com/~alvin/lab/phpvsservlet/
> > in which all of the tests for PHP script ran faster than commensurate
> > servlet
> > Keep this in mind:
> > 1)PHP is weakly typed (tries to covert datatypes for you) VS Servlet
> which
> > has Strongly typed datatypes
> > 2)PHP will require a PHP interpreter on your path
> > 3)Graphics Rendering Packages which are readily available for Java will
> > support PHP only as a last result.
> > 4)Ability to build reusable components such as beans are strictly
> limited
> > 5)Inheritance Polymorphism and Encapsulation rules cannot apply to non
> OO
> > Language such as PHP
> > (Architect may not allow PHP implementation for these reasons)
> >
> > -Martin
> > ----- Original Message -----
> > From: "Jiann-Ming Su" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 18, 2003 4:33 PM
> > Subject: Re: Replacing JSP with PHP?
> >
> >
> > > On Tue, 18 Feb 2003, Shivan wrote:
> > >
> > > > what are advantages of PHP over JSP?
> > > >
> > >
> > > I don't think there is any.  For us, we just happened to have stumbled
> > > onto a PHP front end and a java back end.  Perhaps a better question
> for
> > > this group would be, is there a servlet based portal software like
> > > PostNuke?  If there is, then my problem may be solved.
> > >
> > > --
> > > Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
> > > Development Team Systems Administrator
> > > General Libraries Systems Division
> > >
> > >
> >
> ==========================================================================
> =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > >
> > > Some relevant archives, FAQs and Forums on JSPs can be found at:
> > >
> > >  http://java.sun.com/products/jsp
> > >  http://archives.java.sun.com/jsp-interest.html
> > >  http://forums.java.sun.com
> > >  http://www.jspinsider.com
> > >
> >
> >
> ==========================================================================
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> >
> > Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> >  http://java.sun.com/products/jsp
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://forums.java.sun.com
> >  http://www.jspinsider.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to