$lines = file('http://php720.com/');
foreach ($lines as $line_num => $line) {     
    echo "Line #{$line_num} : ".htmlspecialchars($line)."
"; }

Source