Is there a way to change folder permissions with PHP without using FTP?

Is there a way to change folder permissions with PHP without using FTP? I create new folders on the server automatically, but I cannot move the downloaded file to it due to folder permissions. Do you have an idea that I can change the resolution of a folder without using FTP?

+4
source share
1 answer
chmod('/home/path/directory/', 0777) 

http://php.net/manual/en/function.chmod.php

+14
source

Source: https://habr.com/ru/post/1341401/


All Articles