Advantage of PHP over JSP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
vardhanmca
Forum Newbie
Posts: 5
Joined: Sat May 09, 2009 4:18 am

Advantage of PHP over JSP

Post 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?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Advantage of PHP over JSP

Post 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.
vardhanmca
Forum Newbie
Posts: 5
Joined: Sat May 09, 2009 4:18 am

Re: Advantage of PHP over JSP

Post 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?.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Advantage of PHP over JSP

Post by Benjamin »

:arrow: Moved to General Discussion
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Advantage of PHP over JSP

Post 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?
vardhanmca
Forum Newbie
Posts: 5
Joined: Sat May 09, 2009 4:18 am

Re: Advantage of PHP over JSP

Post by vardhanmca »

Jay thanx for some idea,but i need some more in detail...

somebody help me in this regard......
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Advantage of PHP over JSP

Post 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.
(#10850)
vardhanmca
Forum Newbie
Posts: 5
Joined: Sat May 09, 2009 4:18 am

Re: Advantage of PHP over JSP

Post 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).
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Advantage of PHP over JSP

Post by Christopher »

What do you mean "Architectural concept"?
(#10850)
mdk999
Forum Newbie
Posts: 22
Joined: Fri May 08, 2009 3:21 pm

Re: Advantage of PHP over JSP

Post by mdk999 »

someone writing a paper? ;)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Advantage of PHP over JSP

Post by Christopher »

mdk999 wrote:someone writing a paper? ;)
Who doesn't know how to search the interwebs... ;)
(#10850)
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Re: Advantage of PHP over JSP

Post by Bill H »

And didn't answer the question about this being homework, which suggests that it is.
Post Reply