This code doesn't work. I would like to display a message for visitors who arrive from a specific website address.

PHP Code:
if (strpos($_SERVER['HTTP_REFERER'], "http://www.studiopress.com") === 0) { 
I'm using it in a custom function however i have also used it in a template with PHP tags.