Evank_Horizon Posted July 24, 2009 Share Posted July 24, 2009 How do I do it? My server disables fopen() to download from anything http. I figured cURL could do it but so far I had no luck making it work. imagick does not recognize it as a jpeg stream. $ch = curl_init($adress); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); curl_setopt($ch, CURLOPT_MUTE, 1); $handle = curl_exec($ch); curl_close($ch); Link to comment https://forums.phpfreaks.com/topic/167326-creating-a-jpeg-ressource-with-curl/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.