Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Jsp Or Php


21 replies to this topic

#1 p_a

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 22 posts

Posted 26 September 2005 - 09:12 PM

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.

#2 patelg

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 89 posts
  • Location:AUSTRALINDIA

Posted 26 September 2005 - 10:59 PM

p_a, on Sep 27 2005, 08:12 AM, said:

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.

View Post


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.

#3 vitrus

    Newbie [Level 3]

  • Kontributors
  • PipPipPip
  • 42 posts
  • Location:Haarlem, The Netherlands
  • Interests:Ice-skating and nightskates,<br />Dancing, <br />webdevelopment (java, JSP and PHP)

Posted 10 October 2005 - 03:38 PM

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"...

#4 dul

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 73 posts

Posted 19 October 2005 - 12:50 AM

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

#5 epox

    Premium Member

  • Banned
  • 160 posts
  • Location:Bogotá, Colombia, South America.

Posted 19 October 2005 - 02:51 AM

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.

#6 mcfly

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 15 posts

Posted 05 November 2005 - 08:51 PM

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).

#7 Plenoptic

    Trap Double Mocha Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,310 posts
  • Gender:Male
  • Location:That one place over there...
  • Interests:baseball, webdesign, computer programming, more to be added later
  • myCENT:24.66

Posted 05 November 2005 - 08:56 PM

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.

#8 michaelper22

    -=Hybrid Bus=-

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 742 posts
  • Gender:Male
  • Location:My hybrid bus (in NYC), a computer
  • Interests:Not interested in anything
  • Spam Patrol

Posted 26 November 2005 - 11:38 PM

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).

#9 masterio

    Newbie [Level 3]

  • Kontributors
  • PipPipPip
  • 49 posts

Posted 28 August 2006 - 02:27 PM

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

#10 fffanatics

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 936 posts
  • Location:West Chester, PA

Posted 28 August 2006 - 03:31 PM

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.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users