aspose file tools*
The moose likes Servlets and the fly likes Java vs. PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java vs. PHP" Watch "Java vs. PHP" New topic
Author

Java vs. PHP

Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
I think this is the best forum for this question (even if this isn't the best site for it*), if not, please move it.
I'm now managing a development team which has small client server application, and basic web administration pages. I have a background in Java and don't really know PHP. I can follow the code, obviously, I just don't know the strengths and weaknessed of PHP and how to decide which technology is better. (We run on Linux boxes using Linux Virtual Server.)
For basic web applications, what are the pros and cons of PHP/MySQL versus Java servelets/JSPs/JDBC and related Java technologies?
For the client server applications, they are using HTTP as the communications protocol. It's not really web based. The server side applications are written in PHP/MySQL. What are the pros and cons of PHP/MySQL versus Java servelets/JSPs/JDBC and related Java technologies in this type of usage model?
Thanks for any help!
--Mark
*I"m asking here because, well, obviously I like this site, and also because as a Java guy, I figure we speak the same language (figuratively and literally).
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

For basic web applications, what are the pros and cons of PHP/MySQL versus Java servelets/JSPs/JDBC and related Java technologies?

Hey Mark. One key factor that we always use for any technology is the hiring factor. Which of the two will be easier to fill a position. How many programmer's are out there that know Java Servlets/JSP as opposed to PHP? PHP is pretty cool, it is fully OOP, however, I think there are much more Java programmer's out there.
I think of all the technologies out there for Web based development and especially server side development, Servlets/JSP and EJB's are the most used.
Now for Client Server type application, I waver. I am a rich client type guy, so I want my development IDE to be able to make really cool GUI's and anything I want. I don't want to be limited by the technology. If you have the ability to keep all the users in one OS, then that helps determine which language. Meaning if the clients are all Window's clients, then your best choice is VB, forget about Anti-Microsoft thoughts. VB just has the Windows Development market covered. Yes you can also use Visual C++, but again I say that you end up making it a little more difficult to hire other people down the road. Java Swing I still feel isn't quite there for fast Rich Clients. However if you are using X-Windows, or even Macintosh, it might work for you.
Personally, I would love to use Java everywhere.
Just my 2 cents.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java vs. PHP