“Favorites of Success” logo move_uploaded_file and upload_tmp_dir (permission denied)
© FAVOR.com.ua
 
move_uploaded_file and upload_tmp_dir (permission denied)
  

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.

https://favor.com.ua/en/blogs/8204.html