
February 7th, 2011, 06:50 AM
|
|
|
|
Iphone sniffer is not working
Hi, I found some PHP sniffer code for the iphone, but it is not working. Here is the code I have in the header:
Code:
<? if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
{
header('Location: http://www.mysite.com/md/iphone.htm');
exit();
}
?>
My iphone just stays on www.mysite.com and does not redirect to the iphone.htm.
What am I doing wrong?
thanks
|