<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 07:52:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Grabbing the referrer search engine keywords for a site]]></title>
      <guid>http://www.phpdeveloper.org/news/17009</guid>
      <link>http://www.phpdeveloper.org/news/17009</link>
      <description><![CDATA[<p>
On his blog today <i>Sameer Borate</i> has a new post with a handy bit of code you can use to <a href="http://www.codediesel.com/php/grabbing-the-referrer-search-engine-keywords-for-a-site/">find the keywords from a search engine referral</a> to help with tracking how visitors have come to your site.
</p>
<blockquote>
A couple of weeks back I had to write a solution for a client to track the referrer search engine from where the user came to his sites contact page, without using Google Analytics. If a user was to fill the contact form on the website, the referring search engine name and the keyword for which it was refereed was to be emailed along with the contact information. The following is a solution for the same.
</blockquote>
<p>
The code itself is pretty simple - it checks the $_SERVER['HTTP_REFERER'] and, based on an array of search engine types, looks for a certain "query" keyname in the URL and matches what follows (with <a href="http://php.net/preg_match">a regular expression</a>). This can be useful for not only determining what sort of audience is visiting your site, but could also be used to present a custom message to visitors from certain search engines (or, more complicated, to show different content based on search terms).
</p>]]></description>
      <pubDate>Tue, 18 Oct 2011 13:25:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPro.org: Tutorial - Reciprocal Links]]></title>
      <guid>http://www.phpdeveloper.org/news/11302</guid>
      <link>http://www.phpdeveloper.org/news/11302</link>
      <description><![CDATA[<p>
<i>Kevin Waterson</i> has posted <a href="http://www.phpro.org/classes/Reciprocal-Links.html">a new tutorial</a> to the PHPro.org website today stepping you through the automation of handing reciprocal links.
</p>
<blockquote>
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.
</blockquote>
<p>
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. 
</p>]]></description>
      <pubDate>Tue, 28 Oct 2008 12:52:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mpwebwizard.com: Use a mirror for hits from popular websites]]></title>
      <guid>http://www.phpdeveloper.org/news/6921</guid>
      <link>http://www.phpdeveloper.org/news/6921</link>
      <description><![CDATA[<p>
There's a tutorial over on mpwebwizard.com that's <a href="http://mpwebwizard.com/free_stuff/use_a_mirror">been updated</a> and talks about using a mirror to handle hits from a popular website (like digg or slashdot).
</p>
<blockquote>
caching services such as <a href="http://www.coralcdn.org/">coral content distribution network</a> provide an alternative for when your site goes down, but why wait until it gets to that stage? why not just send all your hits from high-end websites to the coral cache version? well, there isn't a good reason not to, so i'll show you how to do it automatically.
</blockquote>
<p>
He <a href="http://mpwebwizard.com/free_stuff/use_a_mirror">provides the simple script</a> that looks for certain sites in the "HTTP_REFERER" value of incoming calls and pushes them off to the cached location with a header() redirect. The whole thing is only 12 lines, not counting the $sites array.
</p>]]></description>
      <pubDate>Mon, 18 Dec 2006 15:49:00 -0600</pubDate>
    </item>
  </channel>
</rss>
