php下載大一點的zip檔下載不全
ゞ   ꪱꪷ ꪶꪮꪜꫀ ꪑꫀ
ゞ   ꪱꪷ ꪶꪮꪜꫀ ꪑꫀ 2023-09-21 21:14:22
0
0
262
//下载zip包 $url = dirname($url) . '/' .$str_name['filename'] . '.zip'; $origin_size = get_headers($url,(bool)1); $origin_size = $origin_size['Content-Length']??0; $ch = curl_init($url); //设置抓取的url $dir = $upload_dir.'/' . $file_name; $fp = fopen($dir, "wb"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $content = curl_exec($ch); curl_close($ch); fclose($fp);


#
ゞ   ꪱꪷ ꪶꪮꪜꫀ ꪑꫀ
ゞ   ꪱꪷ ꪶꪮꪜꫀ ꪑꫀ

全部回覆 (0)
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!