Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

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?

like image 711
Yunus Eren Güzel Avatar asked Dec 09 '22 10:12

Yunus Eren Güzel


1 Answers

chmod('/home/path/directory/', 0777)

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

like image 87
delphist Avatar answered Apr 06 '23 00:04

delphist