View Single Post
Old 12-04-2003, 06:38 AM  
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
Quote:
Originally posted by KRosh


Comparing CGI Perl to mod_php is never fair. Compare mod_perl to mod_php and the playing field is more level. PHP was designed to *mix* HTML and code, which is an abomination. Programmers tend not to be good at design, and designers tend not to be good at programming, so ideally there is complete separation (which, of course, Perl provides quite well with such modules as HTML::Template)
And if you knew more about PHP you would know there are many templating engines out there that work quite well. Actually when you mix smarty with php and throw in the php accelerator I bet speeds are comparible to mod_perl. Not everything is the language. Bad programming can make a site slower than mod_perl and mod_perl has also been know to bring servers to its knees.

When you use something like Smarty & PHP you can actually seperate the designer & the programmer. If you have a descent designer, smarty allows your designer to do his design work and drop it into php and have it work.

Anyhow, PERL can be a good language, but when PHP can be compiled and/or cached you will see PHP is just as fast as mod_perl imho (although I havnt done benchmarks yet).
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote