I\'m trying to write a file to my /tmp directory (on an apache server) with the php fopen function, but it fails:
<
I had exactly the same problem. PHP reported no problem with opening file in /tmp/myoutputfile
, but no file was in that path. Then I did
find / -name "myoutputfile"
and found it in /tmp/systemd-…/myoutputfile
.
I've found this article on Google.
So, in my case, it was a Systemd and Apache Httpd combination. I hope this will help to someone.