Jump to content

saving page to file


AV1611

Recommended Posts

Well don't know why this don't work

It's supposed to run a script that displays a table of data then saves the html to a file

It displays the table, but doesn't save the data to file

[code]
<?php
$html = file_get_contents("http://blmservices.com/~osprey/webspec/index.php");
echo $html;
$file = "who.txt";
$fp = fopen($file,"w");
fclose($fp);
$fp = fopen($file,"a");
fwrite($fp, $html);
fclose($fp);
?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/31198-saving-page-to-file/
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.