<?php
include ('config.php');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$arr_img[] = $file;
}
}
$i = 0;
foreach($arr_img as $var_img) {
if($var_img != "") {
echo <<< HTML
<a href="./test/$arr_img[$i]"><img src="./test/$var_img" width="10%" height="10%"/></a>
HTML;
}
$i++;
}
?>
This code let me show my images as a link.
But now I need to show my folders as a link but how?
The only thing I can make is a link to my files, but thats
not what I need.
So lets say I got a main folder called test and the
subfolders test2 and test3.
How do I show test2 and test3 as a link?
Thx for any help!
Edited by N00bie_XL, 26 May 2006 - 10:14 AM.
