move_uploaded_file and upload_tmp_dir (permission denied) | |
Автор: utilmind |
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. |
Tweet |
Отправить на E-mail Версия для печати |