here is what my code is, it doesn't work lol
<?php
$folder = "C:/HLServer/tfc/logs";
opendir ($folder);
while (is_file($folder."/".$file))
{
echo $file."<br>";
}
closedir ($folder);
?>
here is the error i get:
PHP Notice: Undefined variable: file in .....\readlogs.php on line 6 (it's talking about $file, i dont know how to get rid if this warning on any of my files)
PHP Warning: closedir(): supplied argument is not a valid Directory resource in ......\readlogs.php on line 11
i didn't pull this format out of my ass btw, i got it from a thread from a few weeks ago but none of the demos posted seem to work so it's fully valid that i post a new thread 🙂