adesh.khare Posted April 20, 2007 Share Posted April 20, 2007 plz give me ans any one how php is better than jsp? Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/ Share on other sites More sharing options...
utexas_pjm Posted April 20, 2007 Share Posted April 20, 2007 PHP is not better than JSP. JSP is not better than PHP. Now that that is out of the way here are some of the reasons they are different. 1) PHP can run on a standard webserver i.e., Apache either as a module or via CGI. Java requires a special servlet container which adheres to the servlet spec i.e., Tomcat, JBoss, etc... PHP is much more popular than JSP in smaller sites because most Hosting services provide Apache and not Tomcat. 2) PHP is strictly interpreted. Java is compiled to byte code then interpreted by a Java Virtual Machine (JVM). 3) PHP scripts end at the end of each HTTP request / response cycle. Java objects can persist between requests through the servlet container. 4) Java forces you to use objects (even if you strictly use JSPs they are converted to objects behind the scenes). PHP does not. 5) PHP provides native MySQL support. Java does not. I'm sure that others will have more to add to this list. These are what I could come up with off of the top of my head. Best, Patrick Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234217 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 Why the question? No language is better than the next. It is all about user preference. If you need a very powerful language, Perl is your guy. If you want one that is easily setup and widely used, well PHP it is. If you like Micro$oft well than ASP .NET, VB .NET and C# are your guys. If you love Java than JSP would be your man. All about user preference, I prefer PHP and PERL over others. Simple fact, they are very easy to setup and there are a ton of scripts/help to be had. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234227 Share on other sites More sharing options...
448191 Posted April 20, 2007 Share Posted April 20, 2007 You might as well ask, which is better: spaghetti or macaroni? Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234234 Share on other sites More sharing options...
utexas_pjm Posted April 20, 2007 Share Posted April 20, 2007 macaroni Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234238 Share on other sites More sharing options...
448191 Posted April 20, 2007 Share Posted April 20, 2007 For me, spaghetti. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234251 Share on other sites More sharing options...
redbullmarky Posted April 20, 2007 Share Posted April 20, 2007 macaroni Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234253 Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 The best programming language is the one the suites the jobs needs the best.. while many languages can do the same thing theirs normally atleast one factor that decides a better language it may be expandbility, performance, compaiability, development time(cost), or language requirements (cost hardware/software) Oh spaghetti... Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234300 Share on other sites More sharing options...
utexas_pjm Posted April 20, 2007 Share Posted April 20, 2007 For me, spaghetti. (sigh) Everyone knows spaghetti doesn't scale like macaroni... not to mention it's questionable cheese support. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234312 Share on other sites More sharing options...
448191 Posted April 20, 2007 Share Posted April 20, 2007 Macaroni will inevitably cause ravioli. Spaghetti is undoubtedly the better choice as long as you use red sauce. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234329 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 Yea but you cannot defeat the cheese on the macaroni. Macaroni it is for me. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-234331 Share on other sites More sharing options...
HoTDaWg Posted April 27, 2007 Share Posted April 27, 2007 Why the question? No language is better than the next. It is all about user preference. If you need a very powerful language, Perl is your guy. If you want one that is easily setup and widely used, well PHP it is. If you like Micro$oft well than ASP .NET, VB .NET and C# are your guys. If you love Java than JSP would be your man. All about user preference, I prefer PHP and PERL over others. Simple fact, they are very easy to setup and there are a ton of scripts/help to be had. leave it too frost to discuss his preferences of men:P Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239503 Share on other sites More sharing options...
Ninjakreborn Posted April 27, 2007 Share Posted April 27, 2007 Well technically nobody really will say one language is better than the other, but some languages have more "popularity" than others. For example, after doing research on languages right before I decided to pick my primary. I found out some were far more popular than others. I found this out by seeing how many projects would be available for each language, how many site's used each one, adn more importantly graphs and grids of peoples opinions. It seemed to fall in pretty much the following order of popularity. This is only taking in server side languages, it's not even mentioning higher level languages like java, perl, or python. When I was looking I was only interested in picking up a server side at the time, but this list is generally the way I categorized it based on popularity. The main reason I noticed that php gained more popularity than ASP overall was because PHP is free. It's also easier to use (That part is pretty much based on opinion). PHP ASP JSP/Coldfusion // about the same Server Side Javascript Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239769 Share on other sites More sharing options...
utexas_pjm Posted April 27, 2007 Share Posted April 27, 2007 JSP/Coldfusion // about the same Server Side Javascript (slaps forehead) Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239774 Share on other sites More sharing options...
Daniel0 Posted April 27, 2007 Share Posted April 27, 2007 JSP/Coldfusion // about the same Server Side Javascript (slaps forehead) There is something called "Server side javascript": http://en.wikipedia.org/wiki/Server-side_JavaScript I must admit that I've never heard about it before though. I'd rather not use it though, as I, based on my limited Javascript knowledge, believe that it is far less powerfull than e.g. PHP and ASP. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239788 Share on other sites More sharing options...
Ninjakreborn Posted April 27, 2007 Share Posted April 27, 2007 Yes far less powerful, and far less secure. It's only real purpose (based on what I read about it), is if you are working on a server that you don't have access to and need to run server side code. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239851 Share on other sites More sharing options...
per1os Posted April 27, 2007 Share Posted April 27, 2007 leave it too frost to discuss his preferences of men:P Don't you know it =) You may want to look into JavaScript more if you think it is not powerful. As for the server-side scripting part of it I am not sure, never used it. But JavaScript on the client side, wow! And Javascript is actually very powerful. Do not underestimate it. Without Javascript, applications like Google Maps, GMail, or any interactive items you see on webpages today would not be possible. Javascript was the first language I learned and I am glad I learned it, it has a lot of functionality I could not live without. As for coldfusion, could there be any more of a joke out there ??? =) Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239900 Share on other sites More sharing options...
bilis_money Posted April 27, 2007 Share Posted April 27, 2007 to give you more idea between these two. macaroni $ 20.00 spaghetti $ 10.00 more cheese please... Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239909 Share on other sites More sharing options...
Daniel0 Posted April 27, 2007 Share Posted April 27, 2007 You may want to look into JavaScript more if you think it is not powerful. As for the server-side scripting part of it I am not sure, never used it. But JavaScript on the client side, wow! And Javascript is actually very powerful. Do not underestimate it. Without Javascript, applications like Google Maps, GMail, or any interactive items you see on webpages today would not be possible. Javascript was the first language I learned and I am glad I learned it, it has a lot of functionality I could not live without. I was talking about server-side. Applications like Google Maps use Javascript on client-side. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-239982 Share on other sites More sharing options...
Ninjakreborn Posted April 27, 2007 Share Posted April 27, 2007 Yes, I Javascript and "Server-Side Javascript" both function a little different. The regular javascript language is only 1 (of 2) browser side languages, and I prefer it over VB tremendously. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-240019 Share on other sites More sharing options...
igor berger Posted May 7, 2007 Share Posted May 7, 2007 PHP! You can get free help from people like us! JSP is proprietary and you will have to pay an arm and a leg for your questions. But you can always go to Fortran on the DEC my praimary language. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-247200 Share on other sites More sharing options...
The Little Guy Posted May 7, 2007 Share Posted May 7, 2007 A programming language is only as good as its programmer. Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-247305 Share on other sites More sharing options...
igor berger Posted May 7, 2007 Share Posted May 7, 2007 bug<debug bug<debug Were is my can of Ray, or a broom...... I hate these bugs........... Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-247307 Share on other sites More sharing options...
redbullmarky Posted May 7, 2007 Share Posted May 7, 2007 bug<debug bug<debug Were is my can of Ray, or a broom...... I hate these bugs........... erm - I think you found the can of Stella Artois instead.... Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-247439 Share on other sites More sharing options...
igor berger Posted May 7, 2007 Share Posted May 7, 2007 No, I prefer Shingha or Tiger, better! Quote Link to comment https://forums.phpfreaks.com/topic/47918-how-php-is-beter-than-jsp/#findComment-247488 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.