As much as I can tell it is. The file is being written when output buffering is not on. So I would assume that that means that the directory is OK.
I'm developing locally on a Mac (the folder properties show it not locked and that read & write is allowed) is there any way that could be causing a problem?
If not I'll keep working on it and if I get it I'll make sure to post up the fix.
Thanks again for the help. Really appreciate it.
Richard