PHP 随机视频 API 接口 - 自动下载 MP4 视频
url;
$random_filename = rand(100000000, 999999999);
$fp = fopen($random_filename . '.mp4', 'w');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $random_video);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);
fclose($fp);
?>
原文地址: https://www.cveoy.top/t/topic/npzv 著作权归作者所有。请勿转载和采集!