File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSP vs PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP vs PHP" Watch "JSP vs PHP" New topic


sriman roop

Joined: Mar 02, 2013
Posts: 13

which is best? I saw tat many blogs , forums , social networking sites runs on PHP... not on JSP.. Is there any flaws in the JSP language ? Why PHP is more popular than JSP ?
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

What is your criteria for the definition of "best"?

It is easier (or faster) to throw together some demoware using PHP than it is to build a scalable application in Java, JSP, HTML, CSS, javascript, etc. Sometimes that is exactly what is needed. Sometimes its a disaster and as soon as you do a public release, you have to rewrite all the code.
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Let me ask you what is best a screw driver or a hammer, pair of scissors or knife?
Answer to your question same as answering my questions above. Each of the above serves a specific purpose. So you can cut vegetables with a pair of scissors, but that is not what people do.
Both PHP and JSP have their own domains, you can find numerous sites implemented using JSPs. What makes you think that JSPs have flaw?
sriman roop wrote:Why PHP is more popular than JSP ?

Where did you find that PHP is popular over JSP?
One reason I know for using PHP for relatively small and not so business logic involved sites is the development cost and hosting cost (both are less for PHP).
Then its hosting providers like GoDady which do not support JSP hosting and provide ease of PHP development through utility/IDE (?) like Drupal.

P.S I know Drupal is actually a CMS, but I have used it to build a PHP site.

|Asking Good Questions|
I agree. Here's the link:
subject: JSP vs PHP
It's not a secret anymore!