php copy function, failed to open stream: Permission denied
Make sure that the system user running php and executing this script has write permission for the directly where you are attempting to store the file.
Make sure that the system user running php and executing this script has write permission for the directly where you are attempting to store the file.