A
Anonymous
Guest
I would like to read an html document from a website into an array or variable of some sort in php. My goal is to have a web page that has dynamic data from another page.
<?php
$filename = "http://www.gnu.org/copyleft/gpl.html";
$handle = fopen ($filename, "r");
$contents = fread ($handle, 5000);
fclose ($handle);
echo $contents;
?>