I'm trying to create an image from jpeg, but it doesn't seem to be wroking.
Here is teh code:
$img="http://foobar.com/image.jpg";
$img2=imagecreatefromjpeg($img);
I get the following error:
Warning: imagecreatefromjpeg: Unable to open 'http://foobar.com/image.jpg' for reading
I know for a fact that the file is indeed at that location.
THe url is also correct.
When i try it when the image is in the same directory as the script, it works
Ex: $img="image.jpg";
$img2=imagecreatefromjpeg($img);
THe above works absolutely fine.
Thanks in advance for any help,
Manuel