I have been working on a project lately that consists of coding a website in all php/mysql and having the xhtml code stored in a database where I can edit it from a control panel. The pages don't have that much content that requires php code.
What are you thoughts on this? Good or bad? Pros & Cons?
Mysql as a way to access the templates I personally find to be better. I have been storing templates in databases lately, but it was more because of the fact I didn't want our clients to have too much access to some of the core files on the server. This way the only way they can edit is just on the database protecting application/flatfiles from misuse. Speed wise, as I was saying in another post, I don't think it is a relevant argument these days. Plus, lately I have been working around with MySQL and finding newer functions within it I think it makes it a much more powerful medium to deliver your xhtml code. One thing you may want to look out for is SQL injection.
Cons of this method; I would say is poor maintenaince. Due to frequent edits/deletions, template tables will tend to have overhead space allocated, so it is important to run OPTIMIZE queries once in awhile.
__________________
»» eBypassnow Launched :: Bringing the e to free access
»» Click Here to Access! :: http://www.ebypassnow.com »» Premium Access for eWeb Members!