I'm trying to create a new file. I have tried both $fh = fopen("$some_file","w")
and $fh = fopen("$some_file","a").
In both cases the error message goes like this:
Warning: fopen("files/funk.html", "w") - Permission denied
Can this be fixed by setting the rights of the directory (now they are set to 765), or must Apache be reconfigured?