http://www.yoursite.com|/path/to/image.jpg|This is the alt info http://www.yoursite.net|/path/to/image.jpg|This is the alt info
<?php $file = file_get_contents("./links.txt"); $line = split("\n", $file); foreach ($line as $l) { $text = split("\|", $l); print "<a href=\"$text[0]\"><img alt=\"$text[2]\" src=\"$text[1]\" border=\"0\"></a>"; } ?>