tags:

views:

25

answers:

1

get_browser() function does not display the ismobiledevice array as 1,

i testing in iphone,

Why it is not displaying the ismobiledevice as 1 ,

i have two page , form-mobile.php and form-pc.php ,

if user using pc means then it should redirect the page to form.pc.php ,

if user using mobile then it should redirect page to form-mobile.php

+3  A: 

Maybe your browscap.ini doesn't contain the descriptions of iPhones/iPads.
Get a recent browscap.ini from e.g. http://browsers.garykeith.com/downloads.asp

VolkerK
is there any way to check , current browsercap.ini supporting device
Bharanikumar
yes, you can check by issuing get_browser and check the result, like you already do.
Emil Vikström
now i updated, i now am checking wiht get_browser function , that is $browser['ismobiledevice']==1 then redirect to mobile page else redirect to pc page, but dont know what is the reason, my page goes to un terminated redirect loop and finaly The page isn't redirecting properly
Bharanikumar
Hard to tell without seeing actual code. But probably that's another issue -> another question.
VolkerK