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 ' 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.