I simply cannot get my "if - then" statement to work!
Scenario: If my visitor has, "attbi" in their gethostbyaddr ($REMOTE_ADDR) variable, I want them RE-DIRECTED to a different page. Here's my terrible php code that won't work. What am I doing wrong?
$z = gethostbyaddr( $REMOTE_ADDR );
$match = "attbi";
if (!strncmp($z, $match, strlen($match)))
{
$url= "http://www.re_direct_visitor.com/";
header("location: $url");
}