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.

Member Avatar for diafol

>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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.