Code: Select all
<html>
<body bgcolor="#000000" text="#FF8a00">
<?
// file() makes an array of each line of the file
$players = file("/home/council/public_html/stats/stats.ini");
echo "<table border=1 cellspacing=1 cellpadding=1>";
// loop through each line
foreach($players as $each){
// explode line into an array
$line = explode(",",$each);
echo "<tr><td>".$lineї0]."</td><td>".$lineї1]."</td><td>".$lineї2]."</td></tr>\n";
}
echo "</table>";and it displays this
http://www.councilofvalhalla.com/stats/test.php
here is the data file
http://www.councilofvalhalla.com/stats/
if there is anyone that could help me it would be most appreciated.thanks