On one of my hosts the code below works but on the other I can an error, I am wondering if it’s a permissions thing.
It also works fine outputting to the browser but when I try to output the gif to a file I get this error:
<b>Warning</b>: imagegif(): Unable to open 'images/canvasfile.gif' for writing in <b>/nfsn/content/blinkingphoto/htdocs/test.php</b> on line <b>4</b><br />
this is the code any ideas?
<?php header ("Content-type: image/gif"); $canvas = imagecreatefromgif("images/bird1.gif"); imagegif($canvas,"images/canvasfile.gif"); imageDestroy($canvas); echo "file created"; ?>
I am not very familiar with setting up stuff like this.