The Personal Weblog of Akshay Jain
This is probably the simplest script that anyone knowing (or even learning) PHP can create in about 15seconds. But I will still post it here just in case anyone is a total noob at PHP.
Purpose of this script: To check a certain given backlink on hundreds of webpages provided you know the URL of every webpage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?php $source = file_get_contents("source.txt"); $needle = "www.IamtryingtocheckThisPage"; //without http as I have imploded the http later in the script $new = explode("\n",$source); foreach ($new as $check) { $a = file_get_contents("http://".trim($check)); if (strpos($a,$needle)) { $found[] = $check; } else { $notfound[] = $check; } } echo "Matches that were found: \n ".implode("\n",$found)."\n"; echo "Matches that were not found \n". implode("\n",$notfound); ?> |
I am Akshay Jain a student in Economics and a web enthusiast. Most of my readers would be knowing me by my pseudonym champ_rock/champrock. This is my blog and I know I wont be keeping this updated. For contacting me, please use the contact form!
Please subscribe to the RSS feeds in order to get the latest updates on my blog!
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Abhishek
October 4th, 2008 at 2:02 am
Sweet simple working one mate !! thanks !!
Book
October 14th, 2008 at 4:25 pm
thanks you very much. But is it view details? Backlinks web sites name or etc.
Akshay Jain
October 14th, 2008 at 4:34 pm
No. This is only for verifying if the backlink exists or not. I have not gone into those details but a little Regexp coding should make that work.