Enabling PHP file_put_contents() support on IIS 7.5 on Windows Server 2008 R2

  • September 1, 2010
  • James Skemp
  • software

I've already installed the current verison of PHP 5.2 on my Windows Server 2008 R2 machine, but unfortunately wasn't able to get content saved via the file_put_contents function.

It seems that you need to add and give IUSR the necessary permissions on the file (or directory) in order for writes to work properly.