I'm trying to save a file like this:
echo file_put_contents("/tmp/foo.txt","Hello World. Testing!");
But the file /tmp/foo.txt
is not created.
I'm on Ubuntu 18. My code is at /var/www/html/index.php
and I'm requesting localhost/index.php
.
I'm trying to save a file like this:
echo file_put_contents("/tmp/foo.txt","Hello World. Testing!");
But the file /tmp/foo.txt
is not created.
I'm on Ubuntu 18. My code is at /var/www/html/index.php
and I'm requesting localhost/index.php
.