Hi there...

I have the following problem...

during a registration process(which has to be confirmed via email) the user can upload his company logo and one other file...

Until the registration is confirmed via email I keep the files in a
/data/temp/ directory....

when user confirms his registration via email the logo is copied
from /data/temp/ to

/data/company_id/

and this other file is copied to
/data/company_id/user_id/

after copying, the files are deleted from /temp/

The problem is that the dynamic created directories and copied files cannot be deleted manualy from the server!???I tried via SmartFTP and directly from cPanel but nothing...Also the logo isn't copied to /company_id/ dir and if I try to upload it manualy I can't because I have no permission...

Then I contacted my support and they deleted the files but that isn't solution...

I tried google but couldn't find nothing useful about this...

Any help would be appriciated cause I don't know what to do..

the code itself is just plain

copy($source, $destination);
unlink($source);

where $destination is a full file name not just a directory which was suggested in the php manual....

UPDATE: I just noticed that only the logo isn't copied!?this other file is copied to user_id directory but the logo isn't to parent directory...

however I cannot delete the user_id directory nor any files in it...

I hope I made this clear...