Reputation: 1
I am creating a file with php. I just want to be able to create it, with no content, under a directory. Then I want to be able to edit it when I access my server with ftp. I can't! The user of php is different from the ftp user, and this last one does not have permissions to change it! I tried chmod,umask,chown, but nothing works. Anybody knows how to do it? Thanks
Cheers
Upvotes: 0
Views: 133
Reputation: 265131
Give your file world writeable permissions chmod('filename', 0666)
Upvotes: 0