Hi,
I hope this is a PHP issue as I miss posted earlier (sorry).
I have created a page for uploading files onto my computer from the internet using PHP.
My page creates a folder to hold the uploaded files in which can be deleted.
BUT once the uploaded file is transfered to this folder I can neither delete the upload file or folder even though they are on my computer.
If I try to delete them I get an "Access denied" message. If I try to change the permissions on them (ie chmod o+w...) I get an "Operation not permitted" message.
The folder is created with :
mkdir("/user/X/pub_html/lectures/$parent_folder/$folder_name", 0755);- it is owned by nobody (as PHP is owned by nobody) & the permissions on the folder are : drwxr-xrwx
The uploaded file is created with :
if (move_uploaded_file($_FILES, $uploadfile))
{
chmod($uploadfile, 0755);
echo '<p id="message">The file has been uploaded</p>';
} etc ..
- it is owned by nobody & the permissions on the files are : -rwxr-xr-x
Any ideas how I might solve this. I have also tried force removing the files with unix commands and using the remove folder PHP command.
Much Thanks,
Sean