$data = file_get_contents('http://url/to/file');
That gives you the whole source of that file in one string.
$data = file('http://url/to/file');
That gives you an array with each line being an array item.
(The first line would be $data[0] and the next line would be $data[1], etc.)