Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "list.php";
- $count = count($list);
- ini_set("user_agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6");
- for($i = 0; $i < $count; $i++) {
- $content = file_get_contents($list[$i]);
- if ($content !== false) {
- // Controllo se nella pagina รจ presente il link
- if (strpos($content, $banner) !== false) {
- echo "<span style='color: green;'>". $list[$i] . " contiene il link</span><br />";
- }
- else {
- echo "<strong><span style='color: red;'>" . $list[$i] . ' non contiene il link</span></strong><br />';
- }
- } else {
- echo "sito offline<br />";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement