php - I can not access the url from my own server -
the url of web example is: http://myweb.com/
script hosted on dedicated. not work same url of server.
<?php $url = 'http://myweb.com/myfbprofilpic.jpg'; header('content-type: image/jpeg'); imagejpeg(imagecreatefromjpeg($url)); ?>
php warning: imagecreatefromjpeg(): gd-jpeg: jpeg library reports unrecoverable error: in php warning: imagecreatefromjpeg(): 'http://myweb.com/myfbprofilpic.jpg' not valid jpeg file in php warning: imagejpeg() expects parameter 1 resource, boolean given in
with url of different host if works
<?php $url = 'http://www.google.com.do/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'; header('content-type: image/jpeg'); imagejpeg(imagecreatefromjpeg($url)); ?>
Comments
Post a Comment