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. ———————————— This document has been copied from FAVOR.com.ua (https://favor.com.ua/en/blogs/8204.html). All rights reserved by author of the material. In case of re-publication, the link to the source of the material is strongly required! Document date: April 17, 2012