<?php //获取空间头像图片 $url = "http://qlogo2.store.qq.com/qzone/393183837/393183837/50"; $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); //phper地带 http://www.phperzone.cn ?>
时间: 2024-10-12 08:21:25