thanks man, awesome work
#########
For some reason this script will not work any longer, Im always getting a timeout error.
Ive tried three seperate servers, all which are running
LINUX
Apache version 1.3.33 (Unix)
This script was working, up to a couple weeks ago makes me think of possibly a server update, OS update or similair hase to be the cause.
Maybe " fopen " can be re-written ????
///
$max_recs = 14; // Number of rows to display
$recs = array();
$handle = fopen("/98.csv", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$cnt = array_push($recs, $data); // Add one to end of array
if ($cnt > $max_recs) // More than the max?
array_shift($recs); // remove first entry in array
}
fclose($handle);
$recs = array_reverse($recs); // Reverse the order of array
for ($i=0, $num = count($recs); $i < $num; $i++) {
echo '<tr><td>call ', $i + 1, '</td>';
$data = $recs[$i]; // Just add this before your echo
echo "<td>" . $data[1] . "</td></tr>";
}