Code: Select all
Resource id #2
Files:
7.jpg
6_thumb.jpg
.
..
3.jpg
3_thumb.jpg
2_thumb.jpg
0.jpg
5_thumb.jpg
1_thumb.jpg
1.jpg
4_thumb.jpg
8_thumb.jpg
0_thumb.jpg
5.jpg
4.jpg
8.jpg
6.jpg
2.jpg
7_thumb.jpgCode: Select all
0.jpg 1_thumb.jpg 3.jpg 4_thumb.jpg 6.jpg 7_thumb.jpg
0_thumb.jpg 2.jpg 3_thumb.jpg 5.jpg 6_thumb.jpg 8.jpg
1.jpg 2_thumb.jpg 4.jpg 5_thumb.jpg 7.jpg 8_thumb.jpg
Code: Select all
<?
if ($handle = opendir('img/photos/people/')) {
echo "$handle<br /><br />";
echo "Files:<br /><br />";
while (false !== ($file = readdir($handle))) {
echo "$file<br />";
}
closedir($handle);
}
?>