|
Posted by Jerry Stuckle on 11/14/07 17:56
flarosa wrote:
> Hi,
>
> I'm wondering if I can get a reasonably civil (without starting any
> huge wars) opinion on how server-side PHP compares to server-side
> Java.
>
> I've been strictly a Java developer for almost 10 years now, and I'm
> pretty happy with it. However, I can't help but notice that there are
> a significant amount of PHP-based development projects where I live,
> and I've also noticed when searching around the internet for ready-
> made web applications that a lot of them are in PHP.
>
> As an object-oriented programmer I've always assumed PHP was more of a
> scripting language for doing things on individual web pages or writing
> small applications and that Java/J2EE was better positioned for
> writing large applications, but maybe that's no longer true.
>
> Let me know what you think. Thanks.
>
> Frank
>
>
Frank,
PHP is more popular because it's supported by all the web servers. When
PHP first came out, for instance, Apache and IIS didn't support Java
well on the server side (don't know what it's like now). Plus is is
fast and has a smaller memory footprint than Java, which made it better
for shared hosting companies. The result is that a lot of hosting
companies offered PHP really cheap - but Java support was comparatively
lacking and more expensive.
PHP is getting more object oriented. It still has a ways to go - Java
is much better in that respect. But PHP is getting there, a little at a
time.
Now when you're talking larger applications, I agree Java is a better
language, especially when you're talking GUIs. There is a GUI available
for PHP, but it is sadly lacking in functionality compared to Java. And
Java's event model makes some things much easier than in PHP (which
doesn't have an equivalent).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|