NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Simple Backlink Checker (Google)

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 08-11-2009, 07:16 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jul 2009
Location: USA
Posts: 22
PHPRight is an unknown quantity at this point
 



Thumbs up Simple Backlink Checker (Google)


PHP Code:
<?php
$domain 
"phpright.com"// Domain to check backlinks

$url "http://www.google.com/search?q=link%3A".$domain;
$file file_get_contents($url);
if (!
strstr($file,'did not match any documents')) {
????: NamePros.com http://www.namepros.com/code/602514-simple-backlink-checker-google.html
 
$linksto strstr($file,"of about <b>");
 
$linksto substr($linksto,strlen("of about <b>"));
 
$linksto str_replace(strstr($linksto,'</b>'),'',$linksto);
 echo 
$linksto.' backlinks';
}
else
{
 echo 
'No backlinks';
}
?>
Thought this might be useful to some who want to make a simple backlink checker or just have a dynamic listing of their site's backlinks on their homepage. Just change the $domain variable and you're on your way.
PHPRight is offline   Reply With Quote
Old 10-04-2009, 08:10 PM   #2 (permalink)
NamePros Regular
 
JagG's Avatar
Join Date: Jun 2007
Posts: 707
JagG has a spectacular aura aboutJagG has a spectacular aura about
 



old
Attached Images
File Type: png Picture 6.png (425.5 KB, 23 views)
Last edited by JagG; 07-18-2011 at 04:33 PM.
JagG is offline   Reply With Quote
Old 10-05-2009, 12:04 PM   #3 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute
 



i think you were supposed to have this line:
PHP Code:
$domain "jag.me"
__________________
- shockie
shockie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:27 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger