bobby101
asked on
web phone app
HI
I have a done app and hosting it on a server and wondering how to allow a person if there accessing it from a mobile device and not allow ppl who use the comp to access it???
I have a done app and hosting it on a server and wondering how to allow a person if there accessing it from a mobile device and not allow ppl who use the comp to access it???
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This information is "external data" and may be subject to tampering. That said, look at this variable:
$_SERVER['HTTP_USER_AGENT' ]
You can find it if you run phpinfo();
The notes on the get-browser page are useful, and see especially this note (looks like get-browser has some problems):
http://www.php.net/manual/en/function.get-browser.php#88923
In order for get-browser to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini file on your system. browscap.ini is not bundled with PHP. It relies on user updates to keep the database current.
$_SERVER['HTTP_USER_AGENT'
You can find it if you run phpinfo();
The notes on the get-browser page are useful, and see especially this note (looks like get-browser has some problems):
http://www.php.net/manual/en/function.get-browser.php#88923
In order for get-browser to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini file on your system. browscap.ini is not bundled with PHP. It relies on user updates to keep the database current.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.zytrax.com/tech/web/mobile_ids.html