how can i read the html of a document into a variable so that i can manipulate it? like find a string in it, and add it to a $var. btw, the document is not local, its on a www.
please provide useful code, thanks!!!!
Here's a good start...
<? $filename = "http://www.somesite.com/page.html"; $fd = fopen($filename, 'r');
$str = ''; while (!feof($fd)) { $str .= fgets($fd,1024); } fclose ($fd);
echo $str; ?>