Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 15th, 2012  |  syntax: None  |  size: 0.43 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $f = fopen ('http://fanpagelist.com/category/top_users/view/list/sort/fans/page1', 'r');
  3. $page = '';
  4. while ($line = fgets($f)) {
  5.   $page .= $line;
  6. }
  7. fclose ($f);
  8. preg_match_all('#(?:(?<=\bhref="/like_box\.php\?id=)|' .
  9.                 '(?<=\bsrc="https://graph\.facebook\.com/))\d+#i',
  10.                 $page, $result, PREG_PATTERN_ORDER);
  11.  
  12.  
  13.  
  14. for($i=0;$i<$result.length,$i++){
  15.     echo $result[$i];
  16.     echo "<br/>";
  17. }
  18.  
  19. ?>