Search This Blog

Thursday, 22 January 2015

Open a directory, and read its contents.

<?php

$dir = "employe/"; //directory name



if ($dr = opendir($dir))

{
while (($file = readdir($dr)))
{
echo "Filename:=" . $file . "<br>";
}

}

?>

No comments:

Post a Comment