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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -