You are here: Re: [PHP] imagegif() unable to open temporary file « PHP « IT news, forums, messages
Re: [PHP] imagegif() unable to open temporary file

Posted by "James" on 11/13/46 11:21

I would then guess the permission error is with the directory stated.

ie /path/to/. Have you tried modifying the directory the script resides in
to allow public write access?

----- Original Message -----
From: "kristina clair" <kclair@gmail.com>
To: <php-general@lists.php.net>
Sent: Tuesday, July 05, 2005 3:28 PM
Subject: [PHP] imagegif() unable to open temporary file


Hi,

I'm having a problem with imagegif() - it is apparently unable to open
the temporary file it needs to write to:

<b>Warning</b>: imagegif(): Unable to open temporary file in
<b>/path/to/script.php</b> on line
<b>192</b><br />

I am using php 4.3.10 compiled with --with-gd. php was compiled using
httpd-2.0.52, but apache has been since upgraded to 2.0.54.

From the docs I've read online, it seems like php should support
writing gif images - we used the packaged gd libraries, which are gd
2.0.28, which is said to support gif.
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled

The error message looks like a permissions problem to me, but I can't
figure out what the source of that might be. Since we don't define a
temporary directory in php.ini, is it being set to the system default,
which is /tmp? The /tmp directory has full write permissions. One
thought I had was that since I am using Fedora Core 3, /tmp is mounted
with noexec, which might be causing a problem. However, I remounted
it without noexec, and imagegif() is still unhappy.

Any thoughts on this would be very much appreciated!

Thanks,
Kristina

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация