hi all,
Is it possible to keep a record of a HTML page in a database table?
How is this done?
thanks,
Kevin.
hi all,
Is it possible to keep a record of a HTML page in a database table?
How is this done?
thanks,
Kevin.
read the html file into a variable, then insert the variable into the database.
Yup. I guessed that. But how do I read the HTML file into a variable??
thanks.
Is the html generated by your scripts, or are you grabbing from somewhere else?
if it's the first look at the output buffering func like [man]ob_start[/man] and [man]ob_get_clean[/man] or if you're sucking someone elses lolly then [man]file_get_contents[/man] might do ya.
Why would you want to do this? For caching purposes? If so, take a look at ob_start, ob_flush, and ob_end.