All pastes #610262 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-07-09 11:14 UTC
rendered paste body
<?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"; }  ?>