hmm, i am aware of these functions. the reason I have looked passed them is because the string would be huge. i would like for all the html to be saved to a file and then change the file extension to a .doc so that a user can then download the file and open it with word.
wouldnt that mean dumping all the html as a string to some variable like,
$page_content = " thousands of lines of html";
?