I'm using the XAMPP for Linux 1.4.14, PHP 5.0.4 (although the problem I describe below also occurs with PHP 4.3.11) and Mandrake Linux 10.
Whenever I use the imagegif() function, I get the following error:
Warning: imagegif() [function.imagegif]: Unable to open temporary file in /path/to/script.php on line 6
I've seen the following bug:
http://bugs.php.net/bug.php?id=29594
This is exactly the same problem that I'm having (except I'm using Linux rather than Windows). The second bit of code posted on that page works fine, but the first one produces an error. It can't be a problem with the /tmp folder on the server because other features which require the temporary folder work (such as sessions and the second bit of code posted at the URL above).
The bug was reported back in August last year, so I don't believe it to be a problem with PHP any more. So could this be a problem with XAMPP? Perhaps somehow an updated file to fix this bug hasn't been replaced in the newest version of XAMPP? Is this a possibility?
Thanks for any help,
Edwin