Monday, 19 November 2012

Stumble and Digg Begging

Haven’t done a Neat Tricks and Hacks in awhile. Here’s one to remind DIGG and Stumbleupon users to up your shit.
PHP



<?
$ sites = ‘Glad you stumbled upon us. Please leave us a nice review if you enjoy the site!’;
$ sites = ‘Glad you found us on Digg. Please Digg up if you like!’;

if( !empty( $ _SERVER ) ) {
$ data = parse_url( $ _SERVER );
foreach( $ sites as $ domain => $ text ) {
if( strpos( strtolower( $ data ), $

Read more ...

No comments:

Post a Comment