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. ———————————— Этот документ был скопирован с FAVOR.com.ua (https://favor.com.ua/ru/blogs/8204.html). Все права на материал сохраняются за его автором. При перепубликации, ссылка на источник материала обязательна! Дата документа: 17 апреля 2012 г.