Directories Listing from the uploaded files in PHP

In this tutorials you can upload the file in the website and you
can run the code from the change the directories place and
upload the file you can check the how many
files uploaded in this directories .

In this method you can easily check the website all the file So here is the source code .

<html>
  <head>
     <title>Browse Directories</title>
  </head>

<body>
   <h1>Browsing</h1>
     <?php
$dir = dir("../search"); //in this place you can change the directories
echo "<p>Handle is $dir->handle</p>";
echo "<p>Upload directory is $dir->path</p>";
echo '<p>Directory Listing:</p><ul>';

while(false !== ($file = $dir->read()))
//strip out the two entries of . and ..
if($file != "." && $file != "..")
{
echo "<li>$file</li>";
}
echo '</ul>';
$dir->close();
?>
 </body>
</html>

Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript