English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

6 answers

Whenever you compare program languages, the primary question is not "which language is better" but "which language is better for this job."

PHP is a scripting language based on Perl. This means that it is very good at modifying script: strings of text. That, combined with built-in regular expression functionality, means that PHP is a very good language if your web site has heavy text use. It allows you to process and modify text very quickly and easily.

JSP is not as good for scripting, but it works well for server applications. JSP is a good tool for modifying servers and for interactions between servers.

Neither language is really "better" than the other. They just have certain applications that they excel at and others that they don't.

2006-08-21 07:24:18 · answer #1 · answered by Steve S 4 · 0 0

PHP is better for low-cost applications; you can deploy applications of any complexity on Linux/Apache/MySQL or FreeBSD/Apache/MySQL software stack. With JSP, you need an additional layer in your software stack (an application server). Moreover, JSP has serious performance issues with MySQL; Friendster, for example, was originally written in JSP, but performance was so terrible that the site was rewritten in PHP from scratch in the summer of 2004.

If, on the other hand, cost is not a factor and you can afford Oracle, the difference in performance is likely to be negligible.

2006-08-21 18:19:37 · answer #2 · answered by NC 7 · 0 0

JSP, PHP have some dis-advantage

Anybody who know Java can easly do the JSP but PHP need to learn from scrach

2006-08-21 14:12:05 · answer #3 · answered by Anonymous · 0 0

What is the purpose that you are going to use it for?

If you are making personal web sites, definitely go with PHP.

Even Yahoo is running on PHP.

Java is more complex. Look into something like Ruby on Rails or Django first.

2006-08-21 14:30:24 · answer #4 · answered by linuxfortravelers 3 · 0 0

these two are not even related to each other.

jsp is server software

php is an extension to html

2006-08-21 14:10:50 · answer #5 · answered by Anonymous · 0 0

.Net is better (THE best!).

2006-08-21 14:37:09 · answer #6 · answered by Anonymous · 0 2

fedest.com, questions and answers