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
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.



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.