Originally posted by matt2012
However you can not update includes online.
Why not? [man]fopen[/man], [man]fgets[/man] (or [man]fread[/man]), [man]fclose[/man].
Open your include file, write out the new version and close the file. Depending on your needs, this could be as simple as 3 lines of code.
I'd steer away from the database approach because: You're attempting to use the database as a file system. Let the file system do what its best at - serving files (it'll even do caching on its own too). I'm positive you can do what you're talking about with files. Check out how some of the larger scale PHP projects do their file and class including (Zen Cart might be a good one).