Changing fopen to curl

apps

#1

Ok, I realize that this has been discussed about a bazillion times, but I don’t really know php and I could use some help with what lines to change.

The script I’m using is called Minifetch, it grabs text off a page and puts it on a new one while removing and replacing different HTML tags.

I believe that this is the problem area:

$fd = fopen($theDomain.$page, “r”); // can change to “rb”, on NT/2000 servers, if problems.

$value = “”;
while(!feof($fd)){
$value .= fread($fd, 4096);
}
fclose($fd);
$start= strpos($value, “$startingpoint”);
$finish= strpos($value, “$endingpoint”);
$length= $finish-$start;
$value=substr($value, $start, $length);

Any help would be greatly appreciated.
Thanks