I had a similar problem when creating a log file that should be located in a subdir like
"logs/file.log". Though I still don't know why, I could figure out that the executable flag
for "other" had to be set for the log directory in order to work, e.g. file permission: 745.
Then I could create/append the file using fopen($logfile, "a+").
Thus perhaps you have to set this bit.
Maybe anyone can tell me why to I had to set this? Can a directory really be executable? I am not so experienced with Linux yet.... ;-)
Michael aka Unique