Is there a way to change folder permissions from PHP without using FTP? I\'m creating new folders on server automatically, but i cannot move the uploaded file in it because
chmod('/home/path/directory/', 0777)
http://php.net/manual/en/function.chmod.php