do you have a mobile to test with? you may be able to tell by the $_SERVER['HTTP_USER_AGENT'] variable.
since there are so many for regular desktop browser, get the user agent for some mobile browsers and then try to match something in that variable.
for example, let's say we wanted to re-direct users if they were using the mobile Browsers Advantgo,NetFront,Xiino or ftxBrowser... do something like this:
<?
if(
strstr($_SERVER['HTTP_USER_AGENT'],"AdvantGo") ||
strstr($_SERVER['HTTP_USER_AGENT'],"Windows CE") ||
strstr($_SERVER['HTTP_USER_AGENT'],"NetFront") ||
strstr($_SERVER['HTTP_USER_AGENT'],"Xiino")
)
{
header("location: mobile.php");
}
else
{
header("location: regular.php");
}
?>
this maybe a helpful link: http://www.zytrax.com/tech/web/browser_ids.htm
hope all that helps 🙂