Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-31-2007, 11:04 AM   #1
neta
Service Man
 
neta's Avatar
 
Join Date: Aug 2007
Location: sweden
Posts: 295
My Photos: (2)
iTrader: (0)

Banked:
MK Cash: $9.90

I am Worth:
MK Cash: $0.19
Donate


neta will become famous soon enoughneta will become famous soon enough
Arrow Check Alexa PageRank, Google/MSN/Yahoo Backlinks

This script will check Alexa PageRank, Google/MSN and Yahoo Backlinks for a certain URL.
Code:
<?php /* Function to check Alexa rank */ function get_alexa($url){ $site = fopen('http://www.alexa.com/data/details/main?url='.urlencode($url),'r'); while($cont = fread($site,1024657)){ $total .= $cont; } fclose($site); $match_expression = '/for more information about the Alexa Web Information Service.-->(.*)<\/span><\/a>/Us'; preg_match($match_expression,$total,$matches); return strip_tags($matches[1]); } /* Function to check Google Backlinks */ function google_backs($url){ $site = fopen('http://www.google.com/search?q=link%3A'.urlencode($url),'r'); while($cont = fread($site,1024657)){ $total .= $cont; } fclose($site); $match_expression = '/of about <b>(.*)<\/b> linking to/Us'; preg_match($match_expression,$total,$matches); return $matches[1]; } /* Functin to check MSN Backlinks */ function msn_backs($url){ $site = fopen('http://search.live.com/results.aspx?q=link%3A'.urlencode($url),'r'); while($cont = fread($site,1024657)){ $total .= $cont; } fclose($site); $match_expression = '/<h5>Page 1 of (.*) results<\/h5>/Us'; preg_match($match_expression,$total,$matches); return $matches[1]; } /* Function to check Yahoo Backlinks (Called inlinks) */ function yahoo_backs($url){ $site = fopen('http://siteexplorer.search.yahoo.com/search?p='.urlencode($url).'&bwm=i&bwmf=a&bwms=p','r'); while($cont = fread($site,1024657)){ $total .= $cont; } fclose($site); $match_expression = '/of about <strong>(.*) <\/strong>/Us'; preg_match($match_expression,$total,$matches); return $matches[1]; } /* Example Usage: */ $link = 'http://www.google.com'; echo "URL: $link, Has ". get_alexa($link).' Alexa Rank, Google BackLinks: '.google_backs($link).' - MSN BackLinks '.msn_backs($link).' Yahoo BackLinks: '.yahoo_backs($link); ?>
neta is offline  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread



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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Your Pagerank / Alexa Rank / Backlinks Stogo Website Coding 9 08-05-2007 6:30 AM
Google lost deal with Alexa and Amazon JeJe Google questions 12 07-31-2006 11:36 PM


Featured Websites




All times are GMT +1. The time now is 12:35 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98