Home » , » Listing file in directory

Listing file in directory

(Feb 21, 2011)

<?php
$dir = "data/";
if ($handle = opendir($dir))
{
while (false !== ($files = readdir($handle)))
{
if ($files != "." && $files != "..")
{
echo $files;
}
}
}
?>

Posted in Label: ,  

0 komentar:

Post a Comment


 

Script Language



© 2011 Script31 - All Rights Reserved


TopOfBlogs Computers Blogs