This may be a dumb question, but what should the file permissions be to enable a PHP script to write a file with fopen?
I am attempting to use fopen to output tet to a file.
The format I am using is:
fopen("ftp://user.password@localhost/path/to/file.txt", "w")
When I do so, I get the following error:
failed to create stream: FTP server reports 213 47
Checking the file permissions via an FTP program, the owner has read and write access, so I assume PHP can access the file.
When I attempt to use another scheme:// in fopen, I get
failed to create stream: Permission denied
so I guess it's a permissions thing, but what do I set them to?