<?function downloadfile($url,1)">$filename="",1)">$timeout=60) {
$filename = empty($file) ? pathinfo($filename;
$result = $url);
$time = date("Y-m-d_H_i_s",1)">time());
$filename = "./catchFile/".$time.'.'.$result['extension'];
$filename = "./catchFile/".$time.'.jpg';
$dir = $filename,1)">PATHINFO_DIRNAME);
!is_dir($dir) && @mkdir($dir,0755,1)">true);
var_dump($url);
$url = str_replace(" ","%20",1)">);
echo "<br />"."asdfasdf"."<br />";
if(function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,1)">);
$size = curl_getinfo($ch,CURLINFO_CONTENT_TYPE);
//var_dump($size);
curl_setopt(FALSE); 抓取https 链接的设置
curl_setopt(FALSE);
curl_setopt($timeoutTRUE);
$temp = curl_exec($chif(@file_put_contents($temp) && !curl_error()) {
return ;
} else {
return false;
}
} {
$opts = (
"http"=>(
"method"=>"GET","header"=>"","timeout"=>)
);
$context = stream_context_create($optscopy($file,1)">$context$http_response_header
$file;
}
}
}