Advantage of PHP over JSP
Moderator: General Moderators
-
vardhanmca
- Forum Newbie
- Posts: 5
- Joined: Sat May 09, 2009 4:18 am
Advantage of PHP over JSP
can some body throw a light on how PHP is different from JSP and what are the main advantages of PHP over JSP?
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: Advantage of PHP over JSP
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
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?.
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
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: Advantage of PHP over JSP
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?
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
Jay thanx for some idea,but i need some more in detail...
somebody help me in this regard......
somebody help me in this regard......
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Advantage of PHP over JSP
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.
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
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).
and also i want the advantages in the Architectural concept of PHP over JSp..??
Please provide in this context(Architectural).
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Advantage of PHP over JSP
someone writing a paper? 
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Advantage of PHP over JSP
Who doesn't know how to search the interwebs...mdk999 wrote:someone writing a paper?
(#10850)
- 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
And didn't answer the question about this being homework, which suggests that it is.