#! /usr/bin/php /s"; $regexp = "/FISTS number:<\/b> (.*?) - /s"; $handle = fopen($filename, "r"); if ($handle) { while (!feof($handle)) { $callsign = trim(fgets($handle, 4096)); $url = "http://www.wm7d.net/perl/fistsselect.pl?fists_number=$callsign"; $html = file_get_contents($url); if(preg_match($regexp, $html, $hit)) { print $callsign . " -- ". $hit[1] . "\n"; } } fclose($handle); } ?