move_uploaded_file and upload_tmp_dir (permission denied)
  
Author:

If you have any problems with PHP’s move_uploaded file and getting «permission denied» error message in error_log’s, when you’re running PHP as Apache module — in most cases you have a problems with target directory, not temporary upload directory.

Just check out permissions of target folder, whether you’re really can write something there.

If you can’t open target directory with fopen($TARGET, ’w’) — you will not able to move_uploaded_file.

So just check out your php.ini, or httpd.conf and add the target directory to open_basedir.


Send by E-mailSend by E-mail   Print versionPrint version
Comments(0)

No comments yet… Be the first to leave comment on this topic!

or
You may sign in using:
Enter with Facebook Enter with Google Enter with VK