Im building a website, but i run into a problem files created by the cms im using is giving file ownership to 'nobody' Now i already asked my host to return ownership of a few files to me but theres many more still not under me.
Ive started using ftp as away of uploading my files to make sure i own them but for files i still dont own i cant delete or edit of which i need to.
So i have this php script to remove them, found it when googling (Not 'bing'ing) :P
Up at the top 'com_comment' is the folder i wish to remove. Sadly inside it, cotains folders and files not owned by me too.
I got this error while executing the script.
where ****** is, thats my username ofc, just replaced it with little cute stars 
Any help would be great.
Malcom
Ive started using ftp as away of uploading my files to make sure i own them but for files i still dont own i cant delete or edit of which i need to.
So i have this php script to remove them, found it when googling (Not 'bing'ing) :P
PHP Code:
<?PHP
// Deletes the entire thumb directory created by PHP script
// Rename this file delete.php, save it in the same directory
// as script and then run it via your web browser.
// $thumbdir = "com_comment";
$thumbdir = "com_comment";
$dir = opendir($thumbdir);
while( $file = readdir( $dir ) ) {
if ($file == "." or $file == "..") {
continue;
}
echo "Deleting $thumbdir/$file ... ";
if (unlink("$thumbdir/$file")) {
echo "Done.<BR>";
} else {
echo "Not done.<BR>";
}
}
if (rmdir($thumbdir)) {
echo "<BR>Directory $thumb was completely deleted.<BR>";
} else {
echo "<BR>Directory $thumb could not be completely deleted. Check permissions.";
}
?>
I got this error while executing the script.
Deleting com_comment/plugin ...
Warning: unlink(com_comment/plugin) [function.unlink]: Is a directory in /home/*******/public_html/administrator/components/delete.php on line 18
Not done.
Warning: rmdir(com_comment) [function.rmdir]: Directory not empty in /home/*******/public_html/administrator/components/delete.php on line 25
Directory could not be completely deleted. Check permissions.

Any help would be great.
Malcom




























Linear Mode

