<?php $search-string = "derpity derp"; $arr = array("http://site1.com", "http://site2.com", "http://etc.com"); foreach ($arr as $site) { $contents = file_get_contents($site); if ( strpos($contents, $search-string) !== false ) { echo "$site - code found.<br />'; } } unset($site); ?>
Dev & Tech Notes
San Diego | Los Angeles | Big Bear | USA
Terms & Conditions ©2005-2024 TJohns.co
Terms & Conditions ©2005-2024 TJohns.co
Top Left Text cha
Web & App Development
Search Website Source Code
- Details
- Written by Timothy Johns
- Category: PHP
- Hits: 2688
Comments