07-27-2008, 03:03 PM
|
#1 (permalink)
|
| New Member
Join Date: Jul 2008 Model: 8800 PIN: N/A Carrier: Rogers Wireless
Posts: 4
Post Thanks: 0 Thanked 0 Times in 0 Posts
| Browser issue? Please Login to Remove! Okay, so basically I'm trying to have my php detect the browser and fail if it's anything other than blackberry, or redirect to another page and not complete the remaining code.
I found this:
<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
echo "User agent reported as: " . $agent . "\n";
if (eregi("BlackBerry", $agent)) {
echo "BlackBerry";
}
else {
echo "Not BlackBerry";
}
?>
but the response is all muddled in the blackberrry browser....
any ideas... for some reason i don't think i'm trying to echo,.. |
| Offline
| |