Hi, i have the following code
<?php
$handle = opendir("./vote_files/votes/");
$i = 0;
$file = readdir($handle);
$file = readdir($handle);
while(false !== ($file = readdir($handle)))
{
$source = fopen("./vote_files/votes/" . $file, "r");
$line = fgets($source, 3);
$line = chop($line);
$values[i] = $line . "-" . $file;
print($values[i] . "<br />");
$i++;
}
//sort($values);
$i = 0;
while($i < 5)
{
print("" . $values[i] . "-" . $i . "<br />");
$i++;
}
?>
what i am trying to do is get the files that have the highest number stored in them (each file has a number and nothign else in it)
and then put it into an unordered list
any ideas as to why this isnot working??
Drogo
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).