|
Greetings,
I'm trying to develop a page content wizard, as follows - I have divided up every page into four sections: header, navbar, content area, and footer. Everything except the content area is the same on every page of the site; I simply require the header, navbar, and footer at the appropriate place on each page.
Now I want to pull the content information for each page out of a MySQL database. This allows me to easily design wizards that allow users to edit the content area of any page. Here's my question, though - what if I want to let my users include PHP code in the content areas? Is there a way to do that? I can't just echo the string to the browser, because it won't be interpreted by mod_php, it will just get echoed as a text string.
I've thought of writing the content area information to a temporary file, then requiring the temporary file, but that seems cumbersome, and you have to worry about filelocking, and purging old files, etc - can anyone think of another way to do this! Many thanks for any auggestions!
-Josh
|