[Phpwm] PHP vs. Java
James Blizzard
jim at acidhl.co.uk
Mon Jul 3 08:16:20 BST 2006
In my opinion they should write it in whatever language they know best.
If they know Java better than PHP chances are the application will be
more secure / better written in java?
Jim
-----Original Message-----
From: acidhl at server4.serverforce.net
[mailto:acidhl at server4.serverforce.net] On Behalf Of David Goodwin
Sent: 03 July 2006 07:55
To: phpwm at mailman.lug.org.uk
Subject: Re: [Phpwm] PHP vs. Java
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 ]
_______________________________________________
Phpwm mailing list
Phpwm at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/phpwm
More information about the Phpwm
mailing list