|
|
Jsp Or Php - Faster, better, .... | ||
Discussion by p_a with 21 Replies.
Last Update: January 14, 2012, 7:51 am | |||
![]() |
|
|
PHP seems to be much better. Fast, reliable. Optimized for databases. Really good.
Many sites went from JSP to PHP.
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.
-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"...
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).
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?
Greetings, staph
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...
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
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
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.
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
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
So i guess what I'm saying is ... why can't we all just be friends ?
Any thoughts are welcome.
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.
Similar Topics:
Which Is Faster Today Java Or Php O...
Php In Five Minutes
Php Language Requirement
Java In Tests, Quizzes How to show e.g. Word - live show. (0)
|
(2) Screen Capture From Client Machine
|
Loading...
HOME 






