Jump to content

Help with host permission thing please


Nomax5

Recommended Posts

Hi,

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:

<br />
<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?

[code]
<?php
header ("Content-type: image/gif");
$canvas = imagecreatefromgif("images/bird1.gif");
imagegif($canvas,"images/canvasfile.gif");
imageDestroy($canvas);
echo "file created";
?>
[/code]

I am not very familiar with setting up stuff like this.
Link to comment
https://forums.phpfreaks.com/topic/18402-help-with-host-permission-thing-please/
Share on other sites

Darn.

Not much more I can think of. Could be something to do with gifs? Some hosts don't load the software for those. I think there is some licensing issue. Probably way off here. Can you create a text file on both?

Sorry not to be of any more help here.



Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.