I want to create alot of dynamic database driven web sites and would like some arguments to prove PHP is better than JSP? I assume both are free and heard Java is the best way to go but would like to hear what PHP has to offer.
It might not be !.
JSP compiles down into bytecode so is kind of compiled, but then again same with php and the zend encoder.
I would suggest some proptypes and see how you go
some in ASP, VB, C, etc. and I must say that I think PHP is quite easy to program in, and also there is a lot of documentation on codes. php.net itself is SUPERB, if you know what you are looking for. You also have google, which is always a nice friend.
When I try to find something about MS Access, google finds squat. I only seem to find stupid forums where I have to pay $$$ to see the supposedly answer.
I think this went a bit offtopic, but:
There are some limits to PHP VS JSP.
You need to refresh the page each time you want the content to change
that is actually all I can think of "on the go".
I think that it's much more code to perform simple tasks in JSP than in PHP. Also the client must have JSP supported SW to run the JSP pages. There is no such limit on PHP, as all is serverside.
JSP might be better for realtime gaming, security, etc. But I think that PHP is better for CMS, forums, web-log, etc etc.
jsp is server side, you write pages with embedded java (a bit like asp and vbscript). The server parses the pages into java and compiles it.
You'll see a lot of java jobs for a number of reasons:
Companies like it and invest in platforms like websphere or the opensource jboss product
and
it was the language for a few years.
I'm not a great java fan but it does have its place.
Essentialy the jsp/asp/php model is the same browser->webserver
Of course in this forum you'll get opinions biased towards PHP, since this is a PHP forum.
My background is totally different. I use Tek-Tips for quite a short period and have joined here now with this reply to the PHP forum, because I began using a CMS system, which is called Mambo (see
And although I didn't narrow the search by choosing PHP I soon came down to 4 CMS systems, which were all based on PHP, not JSP/Java. Amongthem of course mambo, for which I know an expert, Typo3, ezPublish and Tiki Wiki.
So that is definately a plus for PHP if its mostly CMS you need to do. On the other side Java is still one of the best languages for OOP programming, which makes very much of the OOP theory practically available. With Apache/Tomcat/Struts and some add ons you have a very good, stable and structured framework for web applications in general. With NetBeans or Forte/Sun One you have a very sophisticated IDE for Java development of both Desktop and Web Applications or even Mobile Phone/Handheld/PDA Applications. So Java is still the way to go if you want to follow these directions,
but Java is very resource hungry and therefore may be more expensive to host compared to a PHP based web application. PHP didn't start as an OOP language but has gone that direction with it's success.
Finally, I'd suggest PHP for CMS even with a need of a strong, stable Database Background. Via AdoDb you are able to access other databases besides MySQL. Java is good for platform independency, not just concerning Windows and/or Unix servers, but also those Mobile mini computers, and if you plan something like a Webservice.
Bottom line: Java sucks bigtime. PHP sucks in many ways but is sucks way less than Java and JSP.
I am adept at both and I only write Java and JSP when someone is paying hellabucks because it sucks so much and takes 3 times as long to write and debug the same functionality.
ingresman: yeah true..
I thought of making WYSIWYG java editor, as it might be easier to ftp, etc. via it. but I think I'll just use htmlarea and modify it
Hey, don't forget Coldfusion...It's really quite amazing. It simply makes sense to use. Help / documentation is available in great quality and quantity. been using it for years.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.