Page 1 of 1
how to php can modify atribut folder from chmod 0755 to 0777
Posted: Wed Sep 03, 2008 2:56 am
by o_glek
i cann't work it with function chmod aplly to folder
ex: chmod($folder,0777)
that's cann't work
how to be work correct ?

Re: how to php can modify atribut folder from chmod 0755 to 0777
Posted: Wed Sep 03, 2008 3:02 am
by onion2k
Odd. It should work on a folder. Of course, it won't recurse through all the files and subdirectories in the folder. You'll have to write some code to make it do that if that's what you want.
Re: how to php can modify atribut folder from chmod 0755 to 0777
Posted: Wed Sep 03, 2008 3:05 am
by JAB Creations
Really 777 is great number and all but I've read that it's too liberal a permission many times before. I would test out the minimal permissions you need to achieve your goal and then use that as the CHMOD number to go with.
Re: how to php can modify atribut folder from chmod 0755 to 0777
Posted: Wed Sep 03, 2008 3:10 am
by o_glek
hmmmm some webhost, cann't create file with chmod folder with 755, so i set my folder with 707 from ftp before i was created. that's can create file but after that's file was created i will modify with php code into 755.
that's can work, any thread other code chmod ?
