[Phpwm] PHP vs. Java

David Goodwin david at codepoets.co.uk
Mon Jul 3 07:56:24 BST 2006


Constantin Orasan wrote :
> Dear all,
> 
> Please could you give me some arguments why PHP is better than Java for
> web-based programs? I am currently advising some people with a project
> at Aston University and they implemented everything in Java/Tomcat. I
> find this a bit too complicated and slow, and I'd like to convince them
> to move the PHP especially because the program only needs to have a
> simple user management system, access a MySQL database and render the
> results. Any pointers to articles/discussions/etc are welcomed.

Hi,

I'd say :

PHP5 has the same OO features as Java (Interfaces, Abstract classes,
Inheritance, Overloading etc).  However, with Java there is need for
a compile/build phase, and Java projects tend to be more complicated
in terms of structure.

Setting up and running Apache with PHP is far easier than Apache +
Tomcat, and offsite hosting for PHP applications is probably easier to
find.

Depending on what Java technologies are being used (Struts? 
JSPs? Just servlets?), writing HTML interfaces with PHP can be far
easier espeically considering that PHP has inbuilt sanitisation
functions and frameworks like Smarty can be used.

PHP has object mapping frameworks (e.g. Propel), if this is needed.


I'm not sure if it's easier to find PHP programmers than Java ones....

Suggest you read/watch/listen to the following :
http://www.linuxmednews.org/1148401865/index_html
http://www.itconversations.com/shows/detail684.html
http://www.sitepoint.com/blogs/2004/07/01/the-j2ee-guy-still-doesnt-get-php/
http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html

David.
-- 
David Goodwin 

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]



More information about the Phpwm mailing list