The language is only as sloppy as the person writing it. Back to the question, in my personal projects I have been running the Smarty PHP template engine with xhtml 1.0 strict formatted templates and content without any problems. At work we run a much more dynamic version of the engine with html templates, xml content and navigation files pulled into those templates. Still no problems, all we have to make sure of is that we escape the necessary characters when appropiate in our templates.
Note- This is not meant to start a discussion/arguement on the use of this particular php engine (class), but rather to illustrate a variation of PHP's use with both xhtml and html. On 7/3/05, Paul Bennett <[EMAIL PROTECTED]> wrote: > > Subject: Re: [WSG] Will HTML be nicer to PHP than XHTML? > > >Personally, I believe this is one of the strong argumens for XHTML. PHP is > >very sloppy, and when you combine that with another sloppy language, HTML, > >the >mess is tremendos. For small projects and new people it's not much of > >an issue, but try to maintain a large codebase without it being incredibly > >buggy. > > >Using XHTML forces you towards good practices, something that is good to do > >from the begining before you develop those bad habits. I don't know who was > >objecting to using XHTML, but IMHO it will interfere with you learning of > >PHP less than HTML because it will force you to know what your doing, which > >is >the point of learning. > > In PHP's defence, stupid sloppy code can be written in ANY language. (Don't > believe me? Head over to http://www.thedailywtf.com and see some real-world > examples.) > > PHP's lack of pickiness (compared to Java for example) is what has allowed it > to be accessible to so many people, without requiring the very steep learning > curve some other languages require. Good developers write good code. Period. > > let me repeat again. THERE IS NO LINK BETWEEN BAD HTML AND PHP. > > This thread needs to die. > > > -- Chris Gandolfo {Designer & Standards Advocate} Twelve Horses ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
