Whoa, I didn't expect so many comments (here, on dzone and reddit, and who knows where else). Clearly I touched a nerve. However I did learn a lot of things that you don't read in a quicky tutorial on PHP. The whole point of writing something is to get feedback, positive or negative, and hopefully learn from it.
Note that all of the PHP programmers I have known (not a lot since mostly I deal in Java) have complained about their projects, so I admit I haven't known many who where gung-ho about using it for anything beyond a small web app. That's one of the things you get reaching out to a global audience, perspectives you can't get on your own. Yes, I only know the basic syntax of PHP, and Ruby, and Python, a bit more of Perl, a smidgen of C#, Forth and a host of others; that's the problem, it's impossible to be fully aware of all the good (and bad) features of any language/system/framework you don't use. I spent 8-10 years writing C, 5 writing C++, 2 Objective-C and the past 7 with Java. I could write volumes about how much I can't understand why people use C++ at all. At least it would be more honest since I swore at it for 5 years.
My limited experience with PHP coders and the language didn't give me any warm fuzzies, but then again I am sure many PHP coders would feel the same thing about Java, or Perl programmers about C++, or anything one doesn't work with with the basis of your everyday job. It's the nature of this industry, there are way too many ways to do similar things, and no one can be an expert at all of them. I've used way too many things in my life (and continue to learn or develop new ones) but you can't even try them all anymore.
If I had written an article titled 'I Love Java' no one would have taught me anything. The nature of blogging is not to always be a troll but you do have to express an opinion or say something. Sometimes you get called a moron. Sometimes people agree wholeheartedly. Sometimes people agree wholeheartedly that you are a moron.
I still have no interest in using PHP since I have so much experience with Java (in its many forms) and have written my own framework (Fiche). I also have an entire Java stack (Jetty, H2, IBatis, Fiche, etc) which gets me good performance and easy development, so there isn't any real reason to go to a completely new environment. If I would it would most likely be ROR, since that is the new kid on the block. As of right now, I am still a java moron.
Someday I might work on a project where I have to use PHP; at least I will know more than I did last week about it.

Pandoran20 12/13/2006 05:15
It is the nature of a good writer that he provokes thoughts on the part of the reader. However, provoking thoughts does not automatically make for a good piece. It's surprising how an (obviously) enterprise programmer fails to invest any research into such basic claims like it's impossible to write maintainable code. Isn't quickly getting an overview of a language or part of the language (or a library/best practice/framework, etc) one of the skills enterprise developers excel at? It would be obvious from reading any (quality!) overview of the language or any site committed to professionals that use PHP (phpdeveloper.org is an example) that PHP (at least its later versions) offers quite a lot of tools to create maintainable code and doesn't "encourage" nightmare practices as you describe.
Jo 12/14/2006 05:24
pathetic attempt to save the face.
You are not in my bookmark anymore.
Codist 12/15/2006 20:56
Here is a more intelligent article on the shortcomings of PHP: Problems with PHP . I'm not that far off...
Rusty 12/17/2006 12:19
Ignoring the real problems with the language itself I think that the "problem" with php is its community. In the java community there is continuous reinforcement to write well structured code, maintainable code, unit testing, etc. The java community has a very tangible mind set about doing things the right way. And a part of this mind set that the java community has is that programming is a science, not simply something you do to get the job at hand done. I don't think that it has anything to do with the java language, but that java is what is used at universities. I would bet that if you were to poll all of the computer science phd graduates of the last 10 years you'd find that the overwhelming majority of them used java in grad school.
simon 12/18/2006 05:14
Crikey, people take you off of their bookmarks because you say something they don't like. Why am I surprised? Guess some people will never be open to people having opinions that differ from their own.