Here is the code:
<?php
//modify the below settings
$img = 'images/';//Don't forget the trailing slash
$rsslink = 'http://feeds2.feedburner.com/canadians';//Don't leave out the http://
$greetwidth = '100%';//Valid css only, don't forget the px, %, em or whatever on the end
$messages = array(
array(
'referrer' => 'delicious.com',
'icon' => $img . 'delicious_icon.png',
'text' => 'Hello fellow <strong>Delicious</strong> user! Feel free to <a href="http://delicious.com/save?jump=yes&url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it!'
),
array(
'referrer' => 'digg.com',
'icon' => $img . 'digg_icon.png',
'text' => 'Hello fellow <strong>Digger</strong>! If you like this article, please help me out by giving me some <a href="http://digg.com/submit?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>digg love</strong></a>!'
),
array(
'referrer' => 'google.',
'icon' => $img . 'google_icon.png',
'text' => 'Welcome <strong>Googler</strong>! If you find this page useful, you might want to <a href="' . $rsslink . '" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for updates on this topic.'
),
array(
'referrer' => 'stumbleupon.com',
'icon' => $img . 'stumbleupon_icon.png',
'text' => 'Hello fellow <strong>Stumbler</strong>! Don\'t forget to <a href="http://www.stumbleupon.com/submit?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>give me a thumbs up</strong></a> and <a href="' . $rsslink . '" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> if you like this page!'
),
array(
'referrer' => 'technorati.com',
'icon' => $img . 'technorati_icon.png',
'text' => 'Hello fellow <strong>Technorati</strong> user! Don\'t forget to <a href="http://technorati.com/faves?add=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>favorite this blog</strong></a> if you like it!'
),
array(
'referrer' => 'twitter.com',
'icon' => $img . 'twitter_icon.png',
'text' => 'Hello fellow <strong>Twitter</strong> user! Don\'t forget to <a href="http://twitthis.com/twit?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>Twit this post</strong></a> if you like it, or <a href="http://twitter.com/" rel="nofollow"><strong>follow me</strong></a> on Twitter if you find me interesting.'
),
array(
'referrer' => 'search.yahoo.com',
'icon' => $img . 'yahoo_icon.png',
'text' => 'Welcome fellow <strong>Yahooligan</strong>! If you find this page useful, you might want to <a href="' . $rsslink . '" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for updates on this topic.'
),
array(
'referrer' => 'search.live.com, search.msn.com',
'icon' => $img . 'live_icon.png',
'text' => 'Hello there <strong>Live</strong>-ly searcher! If you find this page useful, you might want to <a href="' . $rsslink . '" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for updates on this topic.'
),
array(
'referrer' => 'blinklist.com',
'icon' => $img . 'blinklist_icon.png',
'text' => 'Hello there fellow <strong>Blinklist</strong> user! Feel free to <strong><a href="http://blinklist.com/blink?u=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow">bookmark this page</a></strong> for future reference if you like it!'
),
array(
'referrer' => 'blogmarks.net',
'icon' => $img . 'blogmarks_icon.png',
'text' => 'Hello there <stong>Blogmarks</strong> user! Feel free to <a href="http://blogmarks.net/my/new.php?mini=1&url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it!'
),
array(
'referrer' => 'diigo.com',
'icon' => $img . 'diigo_icon.png',
'text' => 'Hello there <strong>Diigo</strong> user! Feel free to <a href="http://secure.diigo.com/post?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it!'
),
array(
'referrer' => 'facebook.com',
'icon' => $img . 'facebook_icon.png',
'text' => 'Hello there <strong>Facebook</strong> friend! If you like this article, please help spread the word by <a href="http://www.facebook.com/share.php?u=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>sharing this post</strong></a> with your friends.'
),
array(
'referrer' => 'furl.net',
'icon' => $img . 'furl_icon.png',
'text' => 'Hello there <strong>Furl</strong> user! Please feel free to <a href="http://www.furl.net/items/new?r=&v=1&c=&u=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '&t=[[escaped-title]]" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it.'
),
array(
'referrer' => 'magnolia.com',
'icon' => $img . 'magnolia_icon.png',
'text' => 'Hello there <strong>Magnolia</strong> user! Please feel free to <a href="http://ma.gnolia.com/bookmarklet/add?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it.'
),
array(
'referrer' => 'mister-wong.com',
'icon' => $img . 'mrwong_icon.png',
'text' => 'Hello there <strong>Mister Wong</strong> user! Please feel free to <a href="http://www.mister-wong.com/index.php?action=addurl&bm_url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it.'
),
array(
'referrer' => 'myspace.com',
'icon' => $img . 'myspace_icon.png',
'text' => 'Hello there friend of <strong>MySpace</strong>! If you like this article, please help spread the word by <a href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>sharing this post</strong></a> with your friends.'
),
array(
'referrer' => 'newsvine.com',
'icon' => $img . 'newsvine_icon.png',
'text' => 'Hello there <strong>Newsvine</strong> user! If you find this article useful, please remember to <a href="http://www.newsvine.com/_tools/seed?popoff=0&u=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>vote for this article</strong></a> on Newsvine.'
),
array(
'referrer' => 'reddit.com',
'icon' => $img . 'reddit_icon.png',
'text' => 'Hello there follow <strong>Reddit</strong> user! If you like this article, please remember to <a href="http://www.reddit.com/submit?url=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>vote for this article</strong></a> on Reddit.'
),
array(
'referrer' => 'simpy.com',
'icon' => $img . 'simpy_icon.png',
'text' => 'Hello there <strong>Simpy</strong> user! Please feel free to <a href="http://www.simpy.com/simpy/LinkAdd.do?href=http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it.'
),
Continued in next post for length req's