sorry, I should have said..
I would like to have php generate it all for me. Below is a kind of flow of what i want:
example.php PHP page
-> example.php includes and any code executed
-> PHP saves executed results as example.html
hope that clears things up
ta,
Hugh