We have recently transferred my website/code to a new IIS server...
I’m trying to use fopen() to open a file for writing. I’m using the following:
$filename = "C:/Inetpub/WWWroot/website.org/Reports/file.txt”;
$fp = fopen($filename, "w");
This always returns null. I use the same filepath for my include statements:
include "C:/Inetpub/WWWroot/website.org/Libs/file.ini";
And this works fine. Any ideas why fopen() is not working above?
Thanks.