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 of the folder permissions. Do you have any idea that I can change the permission of the folder without using FTP?
chmod('/home/path/directory/', 0777)
http://php.net/manual/en/function.chmod.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With