Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.
| From: | Jeff MacDonald | Date: | Wed, 16 Jun 2010 14:40:07 +0000 |
| Subject: | Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306199@lists.php.net to get a copy of this message | ||
> 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
I'm a sys admin, not a php developer. So I hacked up just enough code to demonstrate how the
function was failing.
>
> 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.
They're both local. The next poster in the this thread answered this for me anyways.
Jeff.
>
> --
> </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!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>