Reputation: 3414
Hi I want to write a file by using php, but first I should set permissions. When I try chmod($file,0777);
it doesn't work and returns false.
What should I do for enable chmod function?
Upvotes: 2
Views: 2258
Reputation: 49
Hey you can do one thing.....go to console and see the file writes and its user using ll command... if user is not a apache user then its will gives you error even if you are syntactically right..so change the group and owner of file to apache using chgrp and chrown command and then run the code...you can see the output........
Upvotes: 1