Display the first 5 file names using opendir() and $file using PHP
Posted
by Jean
on Stack Overflow
See other posts from Stack Overflow
or by Jean
Published on 2010-03-18T07:36:44Z
Indexed on
2010/03/18
7:41 UTC
Read the original article
Hit count: 373
php
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
© Stack Overflow or respective owner