Detect Twitter-user

If you want to get all the visitors from Twitter a special greeting, add the following to your WordPress blog:

Code Snippet:

<?php
if (strpos($_SERVER&#91;HTTP_REFERER&#93;, "twitter.com") == true) {
    echo "Hello Twitter User!";
}
?>

Posted in Social