If I have an admin section in which a user can add pages and content dynamically (the private part of the site) - pages and contents stored in a database.
What is the best way to create these pages on the public side of the site after querying the database. For example:
Would I use something like the above?PHP Code:
$fp = fopen("How to create pages on the fly!.php", "w");
fwrite($fp, "Some content in your file");
What are my alternatives?