Why don't you save the data as a CSS file, and then parse, load, and save back to that file when the user wants to make changes? Then you don't need to worry about generating the file when it's requested.
A:
derekerdmann
2010-08-26 17:48:40
+2
A:
You can use the serialize
function to put the data into a format that can be stored in a MySQL database field. On retrieval you would then use the unserialize
function to restore the variable.
Icode4food
2010-08-26 17:53:54
I can't believe I missed that one! It is ridiculously simple!
Cudos
2010-08-27 11:23:01
A:
The best solution would probably be to use a dynamic CSS file. Save the values as an array in your database and pass them to a PHP file masquerading as a CSS file to set the dynamic values. Check this out: Embedding PHP In CSS
Brian Ray
2010-08-26 18:10:04
A:
I think Mongodb would be perfect. You could keep your default CSS and then only overwrite the fields that the user has entered. I also think a relational db like mysql would just get in your way.
Amala
2010-08-31 01:04:28