i have this script:
[code=php]
<?php
$lines = file(‘[[URL]]’);
$l_count = count($lines);
for($x = 0; $x< $l_count; $x++)
{
}
echo ‘<b><a href=”‘.$lines[1].'”>’.$lines[2].'</a></b><br />’;
echo ‘<a href=”‘.$lines[3].'”>’.$lines[4].'</a><br />’;
echo ‘<a href=”‘.$lines[5].'”>’.$lines[6].'</a><br />’;
echo ‘<a href=”‘.$lines[7].'”>’.$lines[8].'</a><br />’;
?>
I use it to automate 10 headlines, i also use it on an archive page, which requires all the data.
How would i construct a code that detects how many lines there are and replicated the script for each item (as long as the text file is).
(the text file is plain text on different lines, a line is then included)
Thanks for any help.