I want to write to a file in the windows temp directory. I know that in the command line you can use the environment variable %TEMP%
to get the right path, however trying to do something like this:
file_put_contents("%TEMP%\\myfile.txt");
...does not work because the environment variable isn't being resolved. Is there a way to do this?