First off, in the future, it will be advantageous for you to post both the code that generated the error and the error generated.
This appears to be a permissions problem, hence the "[function.fopen]: failed to create stream: Permission denied". The fopen()
function has a required $mode argument which says what you want to do with the file. See the docs for an explanation of all of the modes. I'd guess, since I can't see your code, that you're using trying to use mode 'w' or 'r+', but PHP doesn't have permission to modify the file in question. Since it doesn't have permission, it can't create the read/write stream, which causes all of the subsequent errors.
How to fix this depends upon your platform. In all cases, you'll have to modify the file attributes so that PHP can write to the file. In Windows, you'll have to find the file and turn off the "Read-only" attribute. On a Unix-like system, you're going to have to either use the chmod command to change the permissions of the file, or if you're accessing the server via FTP, you may also be able to do this via your FTP client (look for a dialog called Attributes, Properties, or Permissions or refer to your client's Help file). I'll leave the details of this up to you