Permission denied using fopen


#1

I have been trying to add a temporary comment box to my website using a writing to a file technique while I am still using databases just so I can receive feedback and then replace it later. However in doing so I found the following issues:

Warning: fopen(comments.html): failed to open stream: Permission denied in \VSFILE07\STUDENTS-M-R\MARTIN.MCNICHOLAS\WEB\scriptingfortheweb\loginmain.php on line 11

Warning: fwrite() expects parameter 1 to be resource, boolean given in \VSFILE07\STUDENTS-M-R\MARTIN.MCNICHOLAS\WEB\scriptingfortheweb\loginmain.php on line 12

Warning: fclose() expects parameter 1 to be resource, boolean given in \VSFILE07\STUDENTS-M-R\MARTIN.MCNICHOLAS\WEB\scriptingfortheweb\loginmain.php on line 13

I am assuming the fwrite and fclose issues are due to the permission being denied. Now there is this one issue the server I am uploading to I do not own or have much access to. At my college they offer students to be able to rent out webspace on their servers and about 4 years back I did so because it was free and easy. Eventually I plan on moving everything elsewhere but for now I still am using the webspace they offer. I don’t know much about this issue or how I can fix it IF I can as this may be an issue with the server I am using.


#2

It is probably turned off in the INI settings