Home arrow PHP arrow Page 4 - Count Backlinks from Unique Domains Using Yahoo Inbound Links API

Implementation Flow - PHP

If you've just started using the Yahoo Site Explorer Inbound Links API and want to know how far you can take it, keep reading. This three-part series will show you how to build an application that can help you track your links.

TABLE OF CONTENTS:
  1. Count Backlinks from Unique Domains Using Yahoo Inbound Links API
  2. Requirements
  3. Implementation Concept
  4. Implementation Flow
  5. PHP approximates the overall unique back links count
  6. PHP-Powered Web Form
By: Codex-M
Rating: starstarstarstarstar / 3
January 21, 2010

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

The complete and detailed implementation flow for this application should look like this:


The web form is first presented to the user. They will enter the root domain URL, for example: http://www.thisistherootdomainurl.com . After that, the user will decide if he or she is interested in the number of back links pointing to the entire domain (home page + inner pages) or only to the specific root domain URL (home page only).

When the form is submitted, PHP will process the user inputs and then establish a connection to the Yahoo API. Details of the request will be sent, for example the Application ID, Requested Domain URL, and additional options (entire domain or to specific URL).

If the application ID is valid, the Yahoo API will send the request back to the server. PHP will receive the request, and then analyze the data by filtering for unique domains. For example, if PHP receive the series of back link URLs seen below:

http://www.remarriagemag.com/remarriage-blogs/

http://wordpress.org/extend/plugins/sort-searchresult-by-title/

http://www.remarriagemag.com/features/2009/05/07/my-ex-my-bff/

http://www.gorillapaintball.com/index.php?option=com_zoom&Itemid=54

http://www.gorillapaintball.com/index.php?option=com_weblinks&Itemid=23

http://www.gorillapaintball.com/index.php?option=com_calendar&Itemid=42

http://www.steve-barker.com/

http://www.remarriagemag.com/remarriage-blogs/2009/04/14/parents-steps-the-more-the-merrier/

http://www.remarriagemag.com/remarriage-blogs/2009/04/29/is-this-town-big-enough-for-the-both-of-us/

http://www.remarriagemag.com/remarriage-blogs/2009/06/11/the-pickle/

http://www.remarriagemag.com/remarriage-blogs/2009/05/05/teen-friends-of-a-feather-stick-together/

http://hober.com/php-developer.html

PHP should filter the back link data to count unique domains. In the above example, there are only five back links coming from unique domains.



 
 
>>> More PHP Articles          >>> More By Codex-M
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap

Dev Shed Tutorial Topics: