Working with php directories and files

php Add comments

<?php
$dirName = 'images';
$dir = opendir($dirName);
while ($filename = readdir($dir)) {
  echo $filename . '<br />';
}
closedir($dir);?>

Leave a Reply

You must be logged in to post a comment.

WebSite Powered by webHauser
Entries RSS Comments RSS Login