$url = "http://b50.photo.store.qq.com/psu?/310bbffe-c788-4cbe-98a7-d2221f306093/d44uVPtABgKFSnW9tuYsqhURySm1LuckcRLgQuTMgu4!/b/Yc4Y2B0MmQAAYmKq*yHDbQAA&a=50&b=57&bo=8ABAAQAAAAABAJY!";

$curl = curl_init($url);

$filename = date("Ymdhis").".jpg";

curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);

$imageData = curl_exec($curl);

curl_close($curl);

$tp = @fopen($filename, ‘a’);

fwrite($tp, $imageData);

fclose($tp);