Issue
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?
Solution
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........
Answered By - Ronaldo Answer Checked By - Gilberto Lyons (WPSolving Admin)