Here is what I have so far.
function search() {
global $url;
$file = $url'
$data = file_get_contents($file);
if (preg_match_all("/http:\/\/[\"\s']+/", $data, $matches) {
foreach($matches[0] as $t) {
$open = fopen($t, "r");
$handle = fread($open, 100000);
fclose ($open);
echo $handle;
}
i}