Page 1 of 1

cant delete folders or files once created in php

Posted: Thu Dec 28, 2006 10:24 am
by reecec
Hi

i have created a few folders in php and a few files but i cant delete them in cpanel.

does anyone know why


heres the code for creating a dir

Code: Select all

function SetupFolder($dir_name)
{
   mkdir($dir_name, 0777);
   $folder = opendir($dir_name);
   if (!$folder)
{
die ("Folder '$dir_name' not created");
}
}

$set=SetupFolder($accountsetting);

thanks reece

Posted: Thu Dec 28, 2006 10:46 am
by Jaxolotl
Did you check CHMOD and CHOWN?
seem to be a permission conflict... can you provide us the error message or log?

Posted: Thu Dec 28, 2006 10:55 am
by reecec
hi thanks for your reply

when i tryed to edit one of the files this is the message
[a fatal error or timeout occurred while processing this directive]

thanks

Posted: Thu Dec 28, 2006 11:05 am
by feyd
Use PHP to remove them.

Posted: Thu Dec 28, 2006 12:10 pm
by reecec
thanks that was the only way to delete them