I get an offset of 2 erorr on this script. Please help, thanks.
for($i=0; $i < $size; $i++) { list($title[], $zlink[], $sitename[]) = split('[|]', $filecontents[$i]); print ("<LI><A HREF=\"$zlink[$i]\">$title[$i]</A></LI>"); }
I guess your $filecontents does not contain what you think it contains. Put
echo $filecontents[$i];
as the first instruction in the loop, and see what your file really contains.