[eluser]Captain_Fluffy_Pants[/eluser]
i did what it said in the "user guide" for uploading files. and the in my view i put a code where people can see the images
Code:
<?php
if ($handle = opendir('/home/lulzlab/public_html/uploads/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "Recursive Dir_Renfiles_dirname-filename.php") {
echo "$file";
echo "<br>";
$count = -1;
$handle2 = @opendir($file);
while (false !== ($file2 = @readdir($handle2))) {
echo "$file2";
if ($count <10 ){ @rename("$file/$file2", "$file/$file"."_$file2");}
else { @rename("$file/$file2", "$file/$file"."_$file2");}
echo "<br>";
$count = $count + 1;
}
echo "<br>";
}
}
closedir($handle);
}
?>
but it shows the file name not the images if you look at my site
http://lulzlab.com youll see what i mean please help D: