cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Invalid Image

From: Muhammad Moeen uddin <getmoeen_at_gmail.com>
Date: Sat, 11 Jul 2009 20:59:07 +0500

... im downloadin image files...

$ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $val);
 $content = curl_exec ($ch);
 // CLOSE CURL
 curl_close ($ch);

 $fp = fopen(basename($val),'wb');
 fwrite($fp,$content);
 fclose($fp);

need help!!

Regards

moeen

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-07-11