Hi,
how do I delete a folder at my ftp-server, that was automatically
created through a installation script? I dont have the permission to
delete that folder :-(
Thx for your help
Alf
P.S.
I have already found the following script, but I dont know where exactly
do I need to execute it:
---------------------------------------------------
<?php
function delete($file) {
chmod($file,077 7);
if (is_dir($file)) {
$handle = opendir($file);
while($filename = readdir($handle )) {
if ($filename != "." && $filename != "..") {
delete($file."/".$filename );
}
}
closedir($handl e);
rmdir($file);
} else {
unlink($file);
}
}
delete("folderr name");
-------------------------------------------------
....whereas foldername at the end is the folder to be deleted.
?>
how do I delete a folder at my ftp-server, that was automatically
created through a installation script? I dont have the permission to
delete that folder :-(
Thx for your help
Alf
P.S.
I have already found the following script, but I dont know where exactly
do I need to execute it:
---------------------------------------------------
<?php
function delete($file) {
chmod($file,077 7);
if (is_dir($file)) {
$handle = opendir($file);
while($filename = readdir($handle )) {
if ($filename != "." && $filename != "..") {
delete($file."/".$filename );
}
}
closedir($handl e);
rmdir($file);
} else {
unlink($file);
}
}
delete("folderr name");
-------------------------------------------------
....whereas foldername at the end is the folder to be deleted.
?>
Comment