fopen and chmod

A

Anonymous

Guest
I'm running into permission issues when creating a txt file on a web server. fopen() won't create the file because it does not have the permissions to write to the server. How do I write the file without changing the folder permissions manually? I wanted to use chmod() to change the permissions...but the file must be created beforehand.
 
HI,

You have to first setup root folder permission 777 and other sub folders too.

If not possible please contact your administrator.

It is possible to create run time files after that.

If you create file/folder runtime, there should not be problem.

Please let me know if any concern
 
Back
Top