0

I have to make a folder listing, which I've created:

$dirPath = '.';


if ($handle = opendir($dirPath)) {


   while (false !== ($file = readdir($handle))) {

      
      if ($file != "." && $file != "..") {
         if (is_dir("$dirPath/$file")) {
            echo "<div style='background-color:#0ccccc;'><a href='$file'>$file(directory)</a></div>";
         } else {
            
            echo "<div style='background-color:#0ccccc;'><a href='$file'>$file</a></div>" . filesize($file);
			echo '&nbsp;&nbsp; bites';
         }
      }
   }

   
   closedir($handle);
}

All right, but I can't create the copy ,delete , read and edit buttons.To be sure that I have the permissions I have added an chmod 0777 code in the start of the script.After many tries I can't make still the buttons.

2
Contributors
1
Reply
5
Views
7 Years
Discussion Span
Last Post by diafol
0

>All right, but I can't create the copy ,delete , read and edit buttons.To be sure that I have the permissions I have added an chmod 0777 code in the start of the script.After many tries I can't make still the buttons.

So what do you want from us?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.