Loading...


bookmark - Jsp Or Php Faster, better, ....

Jsp Or Php - Faster, better, ....

 
 Discussion by p_a with 21 Replies.
 Last Update: January 14, 2012, 7:51 am
 
bookmark - Jsp Or Php Faster, better, ....  
Quickly Post to Jsp Or Php Faster, better, .... w/o signup Share Info about Jsp Or Php Faster, better, .... using Facebook, Twitter etc. email your friend about Jsp Or Php Faster, better, .... Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

I had bad experience with Java Server Pages. Lot of problems, website in difficulties, ....

PHP seems to be much better. Fast, reliable. Optimized for databases. Really good.

Many sites went from JSP to PHP.










   Mon Sep 26, 2005    Reply         

QUOTE (p_a)

I had bad experience with Java Server Pages. Lot of problems, website in difficulties, ....

PHP seems to be much better. Fast, reliable. Optimized for databases. Really good.

Many sites went from JSP to PHP.



It depends, why and how you are using this technologies. For Normal web use, PHP will be easy to use with many features....as you already know.

But for complex websites and applications, Java/Jsp solution is much preferable, secure.

This is the reason big organisations use Java/.NET solutions.

Once you site grows bigger and bigger it becomes hard to maintain as it becomes complex with more users, more application and features.

Also, it requires more security, as it also increases threat of being hacked into.

For normal website, PHP solutions is great way to start.

Anyway, different developer has their own opinion but this is mine.

   Mon Sep 26, 2005    Reply         

You are totally right...
-PHP is much easier... You don't have to bother about object types (string, integer, array, enumeration ed).. you just enter $object = "whaaaatever"; and it allways works...
- PHP works fast for small applications (so most personal websites).
- PHP has more default methods (like stripslashes() sha1() md5() etc)...
- And a PHP host is very easy to find... JSP takes some more time....

However: JSP / J2EE r0000x..
if you use it where its made for "Jave 2 enterprise edition"...

   Mon Oct 10, 2005    Reply         


Of course JSP. PHP good. ASP as well. But JSP's encoding is very good.

   Tue Oct 18, 2005    Reply         

i think java is better than php, in one hand php is easy and it doesn't have language restrictions and at last it brings you the security that any other language offers you, but when you talk of proffesional coding it's worthless because it hasn't variable constraints and a lot of things respect to object oriented programming. In the other hand java is specially designed for a good object oriented programming, it's a litle hard to learn but it has the modularity needed to acomplish professional coding and also all the complex of java packets.

   Tue Oct 18, 2005    Reply         

When I first encountered PHP about 5 years ago (can't even remember which version it was...an early 4.x, I think) it had some issues. We were thinking of switching from CF to PHP, but in our testing one of the dll's related to PHP kept throwing errors and gumming up the works. But that was a long time ago and PHP has seen some pretty serious changes since then.

A few days ago, Marc Andreeson was quoted as saying he thinks PHP will surpass Java as the "standard" server-side language (perhaps he specified "web-services language," I can't recall).

To be brutally honest, I think one of Java's biggest problems is Sun. I'd have more faith in it's longevity if it were an IBM product (which may be the case, some day).

   Sat Nov 5, 2005    Reply         


I don't have experience in either of the programming languages yet but I think they both have their advantages. I prefer php though. I use it for navigation around my site.

   Sat Nov 5, 2005    Reply         

ASP.Net and JSP are better for large scale, enterprise level applications. I went to the MSDN event in NYC, and in the demonstrations, they were using Visual Studio, a rather expensive product (depending on the edition), and more affordable for companies than individuals. PHP is free and can be developed for with pretty much any editor (not to mention many good free IDEs).

   Sat Nov 26, 2005    Reply         

For me, PHP is the best programming tool even for enterprise solution. I know java is good. But for web programming, nothing is better than PHP.

if you talk about OOP, just remember, PHP 5 now support OOP 99,5% not like PHP 3 or 4. BTW, there is no system 100% secure. It's depend on the programmer side. Is he understand about security or writing secure code?

The most best market for java i think is for Mobile Application. I've learn java and it run so slow, than C or C++. Just an example, to open "open dialog box" java (I used JAVA 1.5) need at least 6 seconds. And C++ application only took 0.01 secs. Any one has some problem? :D

   Mon Aug 28, 2006    Reply         

You cant just say php or jsp. You have to look at the project you are currently creating and determine what features it needs and will needs and then you choose the language to do it. For smaller projects that dont need all of the windows look-and-feel that the jsp and ajax pages allow, you would stay with php. If you get into a page like gmail, etc. that need tons of complex features, multiple developers working on the same project, etc. you would go with java because it would decrease the time it would take for a project like that to be completed as compared to using php. Finally, you also could do similar types of pages in lisp and write your lisp code so it outputs to php / c code that can be used on the web. Those are your options but you have to know exactly what the person / company wants before you choose a language.

   Mon Aug 28, 2006    Reply         

I don't think you can say a specific language is better than others. Each has its advantages but also disadvantages. It depends on the project you are working on. For example when I've to do database access I prefer JSP because I can use JDBC which is very good and provides a lot of possibilities. On the other hand, for a simple guestbook or something like that I prefer PHP. I think the best is a mixture of different languages. One problem with JSP is that it is very expensive to get webspace on which you can run JSPs or servlets. Free webspace with JSP is much more difficult to find. Webspace with PHP is very easy to find an also doesn't cost very much.

Greetings, staph

   Thu Oct 12, 2006    Reply         

QUOTE (p_a)


I had bad experience with Java Server Pages. Lot of problems, website in difficulties, ....

PHP seems to be much better. Fast, reliable. Optimized for databases. Really good.

Many sites went from JSP to PHP.

Link: view Post: 189636



well, you shouldn't say that way my buddy, jsp or common i call it java techlogy is more powerful than php, php is develop and optimzed for just the web page area, but java is designed for some big complex secure applicaton/systems, doubtless php is much easier in the begining, but how's later if you application became big and big and you need to use distributed archtech of you system, you will find php can do nothing or it's a nightmare, but java is good, it can handle it easyly ,

ok one word, if you just wanna to develop small website withou complex application or logical procudure. ok php is your best choice, otherwise, fellow most portal websites' way use java with some framework like Spring, Struts and Hibernate etc...

   Fri Nov 3, 2006    Reply         

It is depend on the problem you try to solve
JSP offer complex and more secure technology, while PHP offers fast solution.
If you need complex remote procedure call, you need JSP, but if you only need simple message and data delivery, PHP is for you

   Thu Nov 23, 2006    Reply         

It mostly depends on the project itself. If it's a small one php will do just fine. But if you intend to build something big, evergrowing and with a lot of complexity and still you need to keep it neat and easy to maintain, I'll say go for JSP. But have in mind that it is far harder to find free JSP than PHP hosting. One more advantage...And here is the greatest advantage of developing in JSP....Whenever you reach a dead end in writing your J2EE app there is always someone that can help you out there on the numerous java forums.

   Sat Feb 24, 2007    Reply         

It totally depends on what you are using it for, for normal everyday applications I think php will be better but if we are talking about enterprise level kind of applications were lots of security is involved I would think that the better option would be jsp. Php has more user support and you can find help almost anywhere though.

   Sat Feb 24, 2007    Reply         

JSP is usually used for big enterprise application and PHP for smaller ones

But I think newest version PHP has major upgrade which make it able to make enterprise application equal to those built using JSP.

And, I feel that JSP is overcomplex, so I choose PHP :P

   Sun Mar 4, 2007    Reply         

Just a short interesting analogy I've heard fro a friend:

Java and JSP are like obsessive-compulsive people who cannot seem to trust their programmers/developers. It's a lot like they're thinking, "You are a developer. You are prone to mistakes. It is my job to call attention to even the tiniest of your mistakes. I know I'm slow but that's because I'm nitpicking your work so shut up and wait for me to finish."

C and PHP, on the other hand, are like totally gullible slobs. They trust their developers, sometimes a bit too much. "I know you can do it," they say. "If something goes wrong, though, it's not my problem 'coz maybe you want that something to go wrong. Maybe you aren't making mistakes but just doing that $#!+ on purpose. Go ahead I won't stop you."

So in the end of our dinner, I was even more befuddled with visions of talking programs. Still, though, it all depends on your needs. For general-purpose web development, though, I think PHP is better.

   Sun Mar 4, 2007    Reply         

I think I prefer PHP because it\'s much easier. Plus it\'s object-oriented. It uses the same classes and objects functions as JAVA. Besides, some JAVA developers are trying to get to developing Javascript/AJAX applications with the help of Google Web Toolkit.

   Tue Mar 13, 2007    Reply         

What is complex?Jsp Or Php

What is complex? What is samll? Can you define? Is facebook a small application?

IMO Php is simple, clear and procedural, which makes it compelling option for the mass. Whereas Java/Jsp is overtly complex, object oriented and therefore it serves only fanatics who are obsessed rather with the theory than its application and productivity.

-reply by RICK

   Thu Jun 25, 2009    Reply         

I've been asking myself the same question and I've done some digging on the Internet. The wisest and best answer i have found was that you really shouldn't compare the two. They have different marketing targets, so to speak. What i mean is PHP, which initially stood for "Persona Home Page" was created for making small and medium sites with server side functionality. So far i've seen PHP being used mostly in shopping cart like web applications or presentation sites... you get the picture. I personally never really liked PHP and was forced to study it in school. Why i didn't like it was because it's all messy... you got html code mixed with php code... what just against the basic rules of programming "i belive in" :( ... Anyway I'm aware of the existence of PHP based frameworks like Zend that sepparate the server code from the presentation and also have classes and all sort of neat features.

Now on the other side is the Java solution for web development : Java enterprise platform that offers servlets, jsp, tag libraries and all sorts of other APIs. Java is mostly used on really big "enterprise" projects where using PHP would be just pure torture. I'm talking about the kind of web apps created by big companies that have hundreds of classes created by tens of people scattered across the world. Indeed it takes a little more time to setup a Java project and to learn the principles of servlets and jsp or other Java frameworks, but at the end of the day you're making a web application the same way you would a desktop application. You've got classes, packages, design patterns... you've got object oriented programming. So that's why i prefer the Java solution.

You've said PHP vs JSP ... i dunno if u can make a comparison bethween the two ... maybe it's more like bethween PHP and Java, cause JSPs as we all know are translated to servlets, and without servlets you don't have a web app :D . Plus no Java web developer will limit himself to using only servlets and jsp, most will continue by using struts, spring and all sorts of Java frameworks.

So i guess what I'm saying is ... why can't we all just be friends ? :)

   Fri Feb 19, 2010    Reply         

My friend developed a job website - related to posting of jobs/searching of jobs etc etc . This website is in php but he is now confused about the reliability and scalability of his website as the number of members increase. We are in a dilemma if we should migrate the website to jsp/servlets in the initial stage itself .

Any thoughts are welcome.

   Thu Jan 12, 2012    Reply         

QUOTE (chris)


My friend developed a job website - related to posting of jobs/searching of jobs etc etc . This website is in php but he is now confused about the reliability and scalability of his website as the number of members increase. We are in a dilemma if we should migrate the website to jsp/servlets in the initial stage itself .

Any thoughts are welcome.

Link: view Post: 513271


I don't see how it being in PHP can affect the reliability/scalability. There are many websites that have hundreds of thousands/millions of visitors daily and have 0 issues, all run on PHP. In fact, as far as I know all the major CMS's (at least the open-source ones) all rely on PHP, as well as the major forum boards.

I think it has more to do with the coding efficiency than it does the language.

   Sat Jan 14, 2012    Reply         

Quickly Post to Jsp Or Php Faster, better, .... w/o signup Share Info about Jsp Or Php Faster, better, .... using Facebook, Twitter etc. email your friend about Jsp Or Php Faster, better, .... Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Which Is Faster Today Java Or Php O...

which is faster today Java or PHP or .net technology as i see PHP is more faster then other and it fullfill all requirement of client to web development application. and learning is also easy more or less all logic are same in languages so you can use any language as you feel easy ...more

   20-Oct-2008    Reply         

Php In Five Minutes

A five minute introduction to PHP If you are like me, you are intimidated by long, drawn-out tutorials that ask you to write a lot of code. I am a purpose driven learner. Any programming learning that I do is what is needed to accomplish a particular task, so ...more

   11-Nov-2008    Reply         

Php Language Requirement

I want to learn PHP language. But I don't know what is the requirement to run PHP program.And tell me what will be the extension of PHP program if I use PHP5, and what will be the extension of PHP program if I use PHP4. ...more

   17-Aug-2010    Reply         

Java In Tests, Quizzes How to show e.g. Word - live show.   Java In Tests, Quizzes How to show e.g. Word - live show. (0) (2) Screen Capture From Client Machine   Screen Capture From Client Machine