I would highly recommend a database they are much easier to work with.
Outside of that you will want to use the [man]file[/man] function it parses each line into an array
This is taken right out of the example in the php manual and I added the explode to get the the values out of each line.
$lines = file('http://www.example.com/');
foreach ($lines as $line_num => $line) {
list($imagename, $description) = explode(';', $line);
echo '<img src="' . $imagename . '" /> <span>' . $description . '</span>;
}