Created
April 11, 2012 05:59
-
-
Save manigandanta/2357282 to your computer and use it in GitHub Desktop.
Scan directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$directory = "../scripts/"; | |
$images = scandir($directory); | |
$ignore = Array(".", ".."); | |
foreach($images as $dispimage) | |
{ | |
if(!in_array($dispimage, $ignore)) | |
{ | |
$files=$directory.$dispimage; | |
?> | |
<br> | |
<a href="<?php echo $files;?>"><?php echo $files;?></a> | |
<br> | |
<?php | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment