Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('max_execution_time', 6000);
- error_reporting(0);
- $error_404 = "Not Found";
- $list_404 = array();
- $sites = file('sites.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
- foreach($sites as $site)
- {
- $response = get_headers($site);
- if (strpos($response[0], $error_404))
- {
- $list_404[]=$site."
- ";
- }
- }
- file_put_contents('404.txt',$list_404);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement