944,173 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 872
  • PHP RSS
Nov 22nd, 2007
0

What browser are you?

Expand Post »
Hey,
Ad like to know the capabilites of users browser in code so that i give her the codes for her browser I would like to do this without using the deprecated globals like $http_user_agent
and $http_accept
Actually I would like to have two php scripts for my site one for WAP browsers and other for normal browsers. I you have solved this before, please send me the code you used to branch to the two different scripts
PLEASE ADVISE!
THANKS
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mike4 is offline Offline
16 posts
since Jul 2006
Nov 23rd, 2007
0

Re: What browser are you?

i suggest using javascript. get the name of the browser using javascript and refresh with the browser name in the url. have php detect it using the $_GET method and show the right code based on that input. the only problem i see is i think most wap browsers will have javascript disabled by default.(not sure) if you need sample code just let me know.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007
Nov 26th, 2007
0

Re: What browser are you?

Thanks,
Yes please may I see the code?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mike4 is offline Offline
16 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: hyperlink in php
Next Thread in PHP Forum Timeline: online projects





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC