Which programming language is faster, PHP or JSP?
What is an enterprise application? I mean the running speed, the access speed, the web page loading speed.
Public Comments
- JSP is better
- PHP (Hypertext Preprocessor or something like that) is much better and faster.
- Which is FASTER... JSP pages are compiled, PHP is almost never compiled. Generally, JSP will be faster (for heavy duty pages). Both are portable, though, which means that you can always throw a faster computer at it... or a bunch of servers. On the other hand, PHP is a "lighter" technology. For lightly used pages PHP would be faster (no need to compile). So, the answer to "which is FASTER", is "it depends". If its an occasionally used page (1s to 100s of hits), PHP is faster. If its an industrial use page (1000s or 1000000s of hits) JSP is faster. End of Answer - What follows is my opinion PHP is (in my opinion) more pleasant to use. It does have strange warts (as a programming language), and it is very difficult to write secure code in PHP (witness the number of security problems in, say, Squirrel Mail over the last few years -- Squirrel Mail is a webmail package written in PHP) For my own web pages, I generally "hide" PHP pages behind Apache logins, and https -- it keeps out the black hat hackers. If I were generally publishing a PHP page, I would ONLY do it on a hosting server (not one of my own servers). Also, I only use PHP -- simply because it is lighter weight solution (no need to carry around that MASSIVE JVM stuff). I think that JSP could be compiled directly to machine code with "gcj" but I haven't ever tried it. Maybe someone with direct experience could step in and answer that. So, Samurai, as we say in Japanese "shukyakutentou", use what makes you happy.
- PHP is faster. Some people would say that as JSP is compiled therefore it is better but you can also compile PHP. LAMP = (Linux, Apache, MySQL, PHP) is defacto for small and medium business application. Java based front end (JSP) is more suitable for the front ends of enterprise applications. By experience you can see that jsp based websites are a bit slower.
Powered by Yahoo! Answers