Forum Moderators: coopster
You can't open a file for writing using the http protocol.
If its a local file then make sure you specify it with a local path ('/usr/web/file') not an http:// path.
If you don't need to write to the file, then make sure you use fopen(filename, 'r');
So to make a file readable you must set its permissions to make it readable to everybody. Likewise if you want to write to it then everyone must be able to write to it.
I just use a little creation script while developing that makes the needed files and a clean up script that deletes them. Then I can create and delete them allowing php to do whatever it needs to them because the ownership/permissions are correct.