Jacob Meuser wrote: > Granted, php will let a person write horrible code. One way > to minimize the ugliness is to use php.ini-recommended instead of > php.ini-dist as the php.ini.
My problem with PHP is that it doesn't give you any tools to separate presentation from logic. A typical PHP page has a bunch of HTML marked up with a bunch of PHP. You have to read around the PHP to see the formatting, and read around the formatting to see the PHP. Changing either one means editing both, and they interact in strange ways. You can build a system where all the HTML is generated, not inline, but then where's the PHP advantage? HTML is a programming language. An HTML page is a program. (Often a pretty stupid program, but nonetheless...) A dynamic web page is a program that writes programs. If you're going to write program- generating programs, then you might as well go all the way and use a real programming language. PHP didn't strike me as a real programming language. Admittedly, I only spent a couple of days on PHP before I gave up. Maybe I didn't give it a fair evaluation, and jumped to the wrong conclusion. > Also, running a chrooted httpd with mod_php is much simpler than > with mod_perl or mod_python, as perl and python need to be able to > find their modules [...] > Other options include copying the modules into the chroot or > having two separate perl/python installations. A separate perl/python installation is the right way. That protects you from versionitis when you move the web site to a different machine, too. -- Bob Miller K<bob> kbobsoft software consulting http://kbobsoft.com [EMAIL PROTECTED] _______________________________________________ Eug-lug mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
