Originally posted by ralphuk100
Do I have to give the dir read/write access though?
If you're going to allow them to create new templates from inside the app then the directory itself needs to be read/write so you can create the new files. You can get around this by using php's ftp functions. I started with an extreme statement to get your attention, it's a bad habbit I know.
Im sure there must be ways to limit what file types are uploadable to a particular dir?
From inside the CMS you can do this. When I talk about hacking I'm not talking about security holes in your CMS. I assume you're intelligent enough to code securly. What I'm talking about is the real hacker who look for vulerabilities in the underlying architecture.
Somewhere along the lines there always has to be hard coded templates to avoid slowing the db down to a crawl.
Right but those don't have to editable from inside the cms.
I get what you are saying though. And I am taking note. I think the best methodology for this would be to create wireframe templates, just blank table layouts and place everything else (apart from images) into the db. Any thoughts on that?
That could work, though I do recommend using css positioning instead of tables. Then you can store the templates and allow the person to modify the css which is stored in the database. If you use css positioning properly then you can completely redesign a site by changing only the css.
Also I usually stick my images right into the database. Just cause it makes life a little easier and the speed trade off isn't that much unless it's a very image heavy site.