msgbox

parse

Aug 2nd, 2011
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. ERROR_REPORTING(0);
  3. $begin = 265088973; // начальный ID
  4. $end = 265088976; // конечный ID
  5. $user = -6968868; // где ищём
  6. $filename = "log.txt"; // имя файло, куда будем писать лог
  7. $file = fopen($filename,"a+");
  8. for($i=$begin;$i<$end;$i++)  {
  9.   $ch=curl_init("http://vk.com/photos.php?act=get_photo&photo=".$user."_".$i."");
  10.   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11.   $res=curl_exec($ch);
  12.   curl_close($ch);
  13.   if(substr_count($res,"x_null")) {
  14.   }else{
  15.   fputs($file, "photo".$user."_".$i.": ".$res."\r\n");
  16.   }
  17. }
  18. fclose($file);
  19. echo "That's all!"
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment