• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uploading images

#1
[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);
}

?&gt;
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:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.