3.jpg.txt
3.jpg.txt.txt
3jpg.txt
3jpgtxt.txt
<?
// The following will loop through a directory and print out it's contents.
// Define the path to your folder from current directory
$path = "com/";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle))
{
if($file == "." || $file == ".." || $file == "index.php" )
continue;
echo "<a href='".$path.$file."'>$file</a><br>";
}
// Close
closedir($dir_handle);
// This just produces the highlighted syntax. Delete me.
echo "<br><br>" . highlight_file("open_dir.php", true);
?>