News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPro.org:
Tutorial - Reciprocal Links
October 28, 2008 @ 12:52:19

Kevin Waterson has posted a new tutorial to the PHPro.org website today stepping you through the automation of handing reciprocal links.

This tutorial looks at the process of reciprocal links. That is, links generated from websites that have links to your own page. These links back to a page can be detected from the HTTP REFERER which, in PHP, can be detected via the super global variable $_SERVER['HTTP_REFERER']. Care should be taken when using this variable as it is set from userland and, as such, should not be trusted.

His method stores the linking information (gathered from the referrer) and calls an addLinks method that checks to ensure the page format is valid and that it's a real site before putting it into the table. Complete code for this, a fetch method and a simple database layer to put it on top of are included.

0 comments voice your opinion now!
reciprocal links tutorial class validate domain referrer


blog comments powered by Disqus

Similar Posts

Spindrop.us: Digg-style AJAX comment editing in PHP/symfony

Re-Cycled Air Blog: PHP Dark Arts: Daemonizing a Process

Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 6: Zend_Form & Zend_Auth

DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5

TutToaster.com: How To Use, Style and Implement Wordpress Shortcodes


Community Events





Don't see your event here?
Let us know!


laravel version release interview tool opinion symfony voicesoftheelephpant list introduction conference language framework artisanfiles community series composer podcast library security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework