Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. ini_set('max_execution_time', 6000);
  3. error_reporting(0);
  4. $error_404 = "Not Found";
  5. $list_404 = array();
  6. $sites = file('sites.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  7.  
  8. foreach($sites as $site)
  9. {
  10. $response = get_headers($site);
  11. if (strpos($response[0], $error_404))
  12. {
  13. $list_404[]=$site."
  14. ";
  15. }
  16. }
  17.  
  18. file_put_contents('404.txt',$list_404);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement