php trying to save image from the web, error
<p>I can't get this script to save an image to a folder... The error is:</p>

<pre><code>Warning: fopen(/var/www/tmp/image2.png): failed to open stream: Permission denied in /var/www/testqr.php on line 15 
Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/testqr.php on line 16 
Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/testqr.php on line 17
</code></pre>
