File upload problem
I finally have my combo file upload and db update script working. Yay!
However, I am getting a permission denied error when moving the file to
its final destination.
move_uploaded_file($_FILES[$field]['tmp_name'],$newname)
If I manually chmod the folder to 777 or 777 everything works great,
except that I have a folder with write permissions.
I get the same permissions error if I try to chmod, or mkdir from within
the script.
The $newname is the full path - home/username/public_html/. Is this an
issue? Is there another way?
I'm at a loss.
Thanks,
Harvey
|