file upload permission in php

PHP
chmod -Rf 777 FOLDER_PATH
Source

Also in PHP: