Hello again CodeCall!
I am wondering, how would I check the user agent for a website? I want to send anyone with:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko)
Version/3.0 Mobile/1A543a Safari/419.3
to another page on my site if they visit the index file.
Thanks, Beastilio
User Agent Header Help
Started by beastilio, Jan 12 2008 07:28 PM
4 replies to this topic
#1
Posted 12 January 2008 - 07:28 PM
|
|
|
#2
Posted 12 January 2008 - 07:59 PM
In PHP this is the user agent:
You could also use this function: get_browser()
$_SERVER['HTTP_USER_AGENT']
You could also use this function: get_browser()
#3
Posted 13 January 2008 - 04:43 PM
Sidewinder said:
In PHP this is the user agent:
You could also use this function: get_browser()
$_SERVER['HTTP_USER_AGENT']
You could also use this function: get_browser()
Working great! Thanks!
#4
Posted 14 January 2008 - 04:38 AM
You can even use Javascript (but I would not advise it as it is client side)
Look at this (gives you much more than what you want):
Get User Info, JavaScript Tutorial, Howto, Gather Visitor Information, Details, Web-Wise-Wizard
Look at this (gives you much more than what you want):
Get User Info, JavaScript Tutorial, Howto, Gather Visitor Information, Details, Web-Wise-Wizard
#5
Posted 11 February 2008 - 01:10 AM
If you use SSI (server side include) where you have .shtml extension then you can use:
<!--#echo var="HTTP_USER_AGENT"-->
Mobile Walls | Accordian Partitions | Operable Walls | Mobile Glass Walls


Sign In
Create Account


Back to top









