How to create HTML Page Dynamically in php

I need very basic help.
I am creating very simple article directory in PHP where people can submit their articles of 400 words.
The data is saved in mysql table when user submit article.
Now from admin site, when I view the article and after I click on Approve button an html page should be created run-time. Then the article will be deleted from database.I want to create permanent page of that article and delete the data after the page is created.
I need help on this how to create it.:shifty:
I know it is related to file I/O system but just need to do it with few codes of line in php 4 or 5