Created
September 22, 2013 19:11
-
-
Save drewrwilson/6662832 to your computer and use it in GitHub Desktop.
Use php referer to display welcome message for reddit user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'reddit.com') !== false) { | |
echo 'Hi reddit reader!!'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment