Mega Code Archive

 
Categories / Php / File Directory
 

Readdir php

<?php    $dh = opendir('/usr/local/apache2/htdocs/');    while ($file = readdir($dh))       echo "$file <br>";    closedir($dh); ?>