i'm trying to get one file (php) to open a stream on another file (xml) using fopen. i keep getting the following error:
failed to open stream: Permission Denied
i've allowed all permissions for everyone and changed ownership to nobody, and it's still giving the error.
one of the squiz team worked on our site last autumn and built in a function which uses a similar technique, and that works no problem and the respective xml files has the same permissions and ownerships.
any ideas on why i cant open the stream?
thanks
What's the permission of the whole directory? Also, what mode are you trying to open the file for (eg "rw") ?
the directory it is in is httpdocs (drwxr-x—) and the file is being opened for write only.
as i said before, there is another xml file in the directory that has exactly the same contents, permissions and owners. even when i run the same code on this other xml file, it has no problems writing to it. :wacko: