View Single Post
  #7 (permalink)  
Old 06-10-03, 11:55 PM
The Wolf's Avatar
The Wolf The Wolf is offline
CMS Developer
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
I would have a file called 'links.txt' that contains:
Code:
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
and a php file 'links.php' that contains this code:
PHP Code:

<?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>";
}

?>
Thats all you need, apart from a layout to include 'links.php' into.
Reply With Quote