Page 1 of 1
Advantage of PHP over JSP
Posted: Sat May 09, 2009 4:23 am
by vardhanmca
can some body throw a light on how PHP is different from JSP and what are the main advantages of PHP over JSP?
Re: Advantage of PHP over JSP
Posted: Sat May 09, 2009 6:30 am
by jayshields
Correct me if I'm wrong but I a major difference is that JSP is compiled once and ran many times (as with Java classes) whereas PHP is compiled at run-time.
Re: Advantage of PHP over JSP
Posted: Sat May 09, 2009 6:34 am
by vardhanmca
So than what will be the advantage of PHP over JSP, as the PHP page complies every time it will be a performance issue rite?
the core thing i want is besides the JSp the PHp is extensively used in now a days because of which reason?.
Re: Advantage of PHP over JSP
Posted: Sat May 09, 2009 10:17 am
by Benjamin

Moved to General Discussion
Re: Advantage of PHP over JSP
Posted: Sat May 09, 2009 11:43 am
by jayshields
It's not really a performance issue - I'm not the one to talk to about this but I think PHP is compiled to C whereas JSP is compiled to Java bytecode.
I don't really know any concrete reasons why PHP is more widely used than JSP.
Ps. Is this your homework?
Re: Advantage of PHP over JSP
Posted: Sun May 10, 2009 11:38 pm
by vardhanmca
Jay thanx for some idea,but i need some more in detail...
somebody help me in this regard......
Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 1:06 am
by Christopher
I think the advantage that PHP has over Java/JSP, as far as popularity, has to do with how they are deployed. PHP is much easier for hosting companies to deploy and sandbox in a virtual hosting environment. PHP scripts are simple files that require no compilation, so they are simple to manage and changes appear instantly. JSP on the other hand is really a front-end to Java objects or containers that provide the application logic for the JSP. In PHP, the language is use both as a templating language and an application language. Additionally, because PHP is integrated into the webserver you can use the webserver to provision capability, bandwidth, etc. With JSP/Java there is a separate application server running that create another things to support. PHP gains its advantages by not being a general purpose computer language like all of its competition are.
Add to that the fact that in the general purpose computer language arena the momentum is swinging away from Java and toward Python. PHP has gained popularity in the struggle because of the advantages above, plus the fact that the PHP Group has aggressively added features to PHP to keep it current.
Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 4:44 am
by vardhanmca
Thanks arborint!!!! i think i get some points from your description ( Got the general advantages)
and also i want the advantages in the Architectural concept of PHP over JSp..??
Please provide in this context(Architectural).
Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 12:02 pm
by Christopher
What do you mean "Architectural concept"?
Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 1:17 pm
by mdk999
someone writing a paper?

Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 2:19 pm
by Christopher
mdk999 wrote:someone writing a paper?

Who doesn't know how to search the interwebs...

Re: Advantage of PHP over JSP
Posted: Mon May 11, 2009 2:58 pm
by Bill H
And didn't answer the question about this being homework, which suggests that it is.