LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP and GD trouble (https://www.linuxquestions.org/questions/programming-9/php-and-gd-trouble-561304/)

myrmidon 06-12-2007 05:13 PM

PHP and GD trouble
 
Hello all im gettint my head into wall , now

On Fedora Core 5, php 5 with php-gd 5.1.6



$url="http://www.something.com/image.jpg";

i'm using $im = createimagefromjpeg($url);

but the source image cannot be accessed thorough $url,

but if i change the

$url="local/image.jpg";

it works fine !!!


In php.ini allow_url_fopen is ON ..

Any ideas ???

thx

Guttorm 06-14-2007 06:26 AM

Hi

No idea what can be wrong. But here are some things to check:
- Did you restart the web-server after changing php.ini?
- The link does in fact return a Jpeg? The link you posted does not :)
- Do you get any error message? If not, is error reporting turned on? See http://www.php.net/error_reporting


All times are GMT -5. The time now is 06:40 AM.