Jump to content

Saving generated page


monkeypaw201

Recommended Posts

i am looking for a way to create a html file generated via PHP, i know how to create the file:

 

<?php
$ourFileName = "testFile.txt";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);
?>

 

but im not sure how to write to it to create the same output as the page.. (html) and save it on that file..

 

any help?

Link to comment
https://forums.phpfreaks.com/topic/113814-saving-generated-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.