09-12-2001, 04:07 PM
|
|
Registered User
Join Date: Jul 2001
Location: Australia
Posts: 19
|
Quote:
Originally posted by altasexa:
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).]
|
|
|
|