Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

From: Date: Wed, 16 Jun 2010 14:35:48 +0000
Subject: Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306196@lists.php.net to get a copy of this message
On Wed, Jun 16, 2010 at 10:26, Jeff MacDonald <jeff@bignose.ca> wrote: [snip!] > > To see an example of this in action, > > Working function : > http://www.equipmentsearch.com/~jeff/tmp/image.php?i=w > Not working function : > http://www.equipmentsearch.com/~jeff/tmp/image.php?i=n > > http://www.equipmentsearch.com/~jeff/tmp/image.php.txt is the > code. > > Does anyone have any ideas or suggestions of where to look next? If your code is an accurate representation, and not just an example to demonstrate the function source in action, then that's your problem (which I doubt, of course), as you're specifically calling the value of $_GET['i'] to determine which static image to display. Also, you use $_GET['i'] == w. Since 'w' is not a constant, it will revert to using the literal w, but that's not such great form there, Spanky. ;-P Is the image loaded from the local filesystem directly, or is it using an HTTP or other over-the-wire call? If it's not local, check to ensure that you have the URL fopen option enabled. -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ We now offer SAME-DAY SETUP on a new line of servers!

« previous php.general (#306196) next »