A while ago I ran into a problem where fopen would not create files, very bad since I mainly use flat file databases. I know most of you use databases like mysql but I figured some might want know about a loop hole around this problem. I'm a above average Noob so don't lol.
IF the sever won't create a file it might just be able to copy a file. When you want to create a file with some data, get a temp file and edit the contents and then copy the file using copy() and then name the file what ever you want.