View Single Post
Old 09-12-2001, 03:59 PM  
altasexa
Registered User
 
Join Date: Jul 2001
Location: Australia
Posts: 19
You mean something like this...

Code:
<?
$tgp = file('tgp.txt');
$line = current($tgp);
while ($line) {
	$field = explode(',',$line);
	echo '<a href="' . trim($field[1]) . '">' . trim($field[0]) . "</a>\n";
	$line = next($tgp);
}
?>
This chunk of code will read a text file called tgp.txt which should be in the following format -

Description,URL e.g. -

Gallery One,http://www.somedomain.com/gallery1.html
Gallery Two,http://www.somedomain.com/gallery2.html

Cheers,
Dave.

[This message has been edited by altasexa (edited 09-12-2001).]
altasexa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote