Re: [PHP] imagegif() unable to open temporary file
On Tue, July 5, 2005 1:22 pm, James said: > 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? Woof. There is NO WAY that you should be required to have a world-writable directory with a PHP script somebody can surf to in it! I'm not saying the configuration isn't so messed up that that's not the "problem" but the root problem then is that the tmp dir has been set to "./" or something equally stupid. That's just a dangerous configuration. World-writable directories in your web-tree are a Bad Idea. So if making your script directory world-writable "fixes" it; you know that your tmp_dir setting is wrong. Set the directory back to not world-writable. Then use phpinfo() to figure out how/why/where tmp_dir got reset, and fix the root problem. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imagegif() unable to open temporary file
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" <[EMAIL PROTECTED]> To: 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: Warning: imagegif(): Unable to open temporary file in /path/to/script.php on line 192 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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: Warning: imagegif(): Unable to open temporary file in /path/to/script.php on line 192 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 Supportenabled 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
RE: [PHP] ImageGIF
Install a version of GD with GIF support. > No, its not listed. What do I need to do? > > J > > > > -Original Message- > > phpinfo() also lists which image types your GD supports. Does it list > GIF? Later versions do not have GIF support. > > -Rasmus > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ImageGIF
No, its not listed. What do I need to do? J -Original Message- phpinfo() also lists which image types your GD supports. Does it list GIF? Later versions do not have GIF support. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ImageGIF
> ImageGif: No GIF support in this PHP build in counter.php > > I get this error message when I try to run this code... > > Header("Content-Type: image/gif"); > $im = ImageCreate(500, 75); > $red = ImageColorAllocate($im, 255, 0, 0); > ImageFill($im, 100, 100, $red); > ImageGIF($im); > > I installed GD. When I use phpinfo(), it says GD is enabled. What gives? phpinfo() also lists which image types your GD supports. Does it list GIF? Later versions do not have GIF support. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ImageGIF
ImageGif: No GIF support in this PHP build in counter.php I get this error message when I try to run this code... Header("Content-Type: image/gif"); $im = ImageCreate(500, 75); $red = ImageColorAllocate($im, 255, 0, 0); ImageFill($im, 100, 100, $red); ImageGIF($im); I installed GD. When I use phpinfo(), it says GD is enabled. What gives? Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ImageGif: No GIF support in this PHP build
sorry, clarification, not "only" PNG, but they've moved away from GIF... ~jack -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:27 PM To: PHP General List; Jimmy Bäckström Subject: RE: [PHP] ImageGif: No GIF support in this PHP build what version do you have? gd > 1.3 (if memory serves correct) only supports PNG ~jack -Original Message- From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:20 PM To: PHP General List Subject: [PHP] ImageGif: No GIF support in this PHP build Shu! When I try to use the function ImageGif() I get the following error: Warning: ImageGif: No GIF support in this PHP build... I'm using win2k with php4 width the gd module enabled in php.ini What can I do to make this problem go away? Thanks in advance /Broder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ImageGif: No GIF support in this PHP build
what version do you have? gd > 1.3 (if memory serves correct) only supports PNG ~jack -Original Message- From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:20 PM To: PHP General List Subject: [PHP] ImageGif: No GIF support in this PHP build Shu! When I try to use the function ImageGif() I get the following error: Warning: ImageGif: No GIF support in this PHP build... I'm using win2k with php4 width the gd module enabled in php.ini What can I do to make this problem go away? Thanks in advance /Broder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ImageGif: No GIF support in this PHP build
Shu! When I try to use the function ImageGif() I get the following error: Warning: ImageGif: No GIF support in this PHP build... I'm using win2k with php4 width the gd module enabled in php.ini What can I do to make this problem go away? Thanks in advance /Broder