@CodeBeast is giving me so many wtf moments it's making my head spin. And now he thinks Apache is written in Java. How bizarre can you get?
Big corporate systems like PeopleSoft use Java (or did back when I had a regular job) so it must have something going for it. I used to get so frustrated because to do the same job in VBA (also used by PeopleSoft) or PHP (not used at all) would take a handful of lines of code while the java gave us all sorts of versioning and migration problems. I suspect that few of us are sufficiently experienced in both systems to be able to give a rational review. For all that CodeBeast may be making unpopular comments it does atleast sound like s/he's thought about it. These 2 add nothing to the discussion.
Apache is written in C. Tomcat is a server that runs a Java environment. It's not the same thing as Apache. How deep the Java code goes, I'm not sure.
..How is php and java comparable in any way shape or form? or do you mean JavaScript? because Java is very different from JavaScript.......
They both have different purpose. Yes JAVA is good for standalone desktop applications and large Enterprise solutions. Whereas PHP is a web optimised server side scripting language, which is intended to work with web technologies such as HTML/CSS/Javascript. Many developers from a traditional background learn a full blown lanaguage such as JAVA or C, then add scripting languages like PHP, ASP, or Python to their bow.
* I think Java is more of an industry standard, whereas PHP seems to be popular among hackers and hobbyists. * Java provides better separation of layers - key for testability. PHP has all the code embedded in the page, so you have to run it through a browser to test if database connections work (for instance). Java is more scalable. * More folks know Java and it's easier to qualify someone's Java skills. How do you test someone knows PHP? Is there a certification? * More for-profit organizations use it. * Java has a much wider range of application. It's also much harder to learn. If you know perl, you can pick up PHP in no time anyway.
No its not. Depends on the script. Facebook, Wordpress, this site, most others. A lot are ASP/.NET based. Very, very few are Java. Code and script are the same thing. There is a difference between scripts and programs, but Java Server Pages are made of scripts as well, or "scriplets" as they are known. Apache TomCat is. The widely used Apache server is written in C. Also the clients don't need JRE to run websites using Java ServerPages since all the Java is being processed on the server and is just outputting HTML.
PHP is different from JAVA as java is a platfor independent language and it is not very easy to learn u have to stugle a lot but once u got th e language then it rocks