Ubuntu 14.04
$upload_dir = $_SERVER['DOCUMENT_ROOT'] . "/site/uploads/";
Who is Apache process owner:
echo exec('whoami');
In my case it's www-data, then change the owner of the destination directory:
chownwww-dataupload_dir
and set permission:
chmod 755upload_dir
Комментариев нет:
Отправить комментарий