I have a web page with a table and i am having trouble getting getting contents of a file to appear in the table correctly. The file is a list so i do not want it to appear like a string .. i.e.
_____list.txt_____
apples
oranges
bananas
grapes
pears
in a string it would appear on the page as
apples oranges bananas grapes pears
i've tried this code
$fcontents = file ($filename);
while (list ($line_num, $line) = each ($fcontents)) {
print " " . htmlspecialchars ($line) . "<br>\n";
}
and it works but how can i get it to print like this in my table?
Scorpion,
http://ScorpionsDen.d2g.com
ICQ# 106451637