Miscellany
public php v1 · immutable<?php for ($i=0; $i<=18; $i++) { $ch = curl_init("http://warnet.ws/video/142/".$i.".wmv"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); $str = curl_exec($ch); $fp = fopen('./'.$i.'.wmv', 'w'); fwrite($fp, $str); fclose($fp); echo $i."\r\n"; } ?>