Display the first 5 file names using opendir() and $file using PHP
- by Jean
Hello,
$d = opendir("docs");
while (($file = readdir($d)) !== false) {
if (($file != ".") && ($file != "..")){
}
}
I want to be able to display the first 5 file names.
Thanks
Jean