I wouldn't blame PHP for mixing code and content. It's easy to do that in other languages too. I'd say it's mostly due to the person designing the system in the first place. Regardless of the language, if you don't structure a system properly, then code and content will get mixed together.
I agree with the others who mentioned the accessibility of PHP. It has the smallest learning curve out of all the languages I have used, making it accessible to more people. A lot of these people probably don't have the background or the desire to separate code and content.
My opinion is that the language doesn't really matter. It may be easier to write messy code in PHP than other languages, but in the end it all comes down to the actual design of the software, not the language it's written in.
|