What browser are you?

Reply

Join Date: Jul 2006
Posts: 16
Reputation: mike4 is an unknown quantity at this point 
Solved Threads: 0
mike4's Avatar
mike4 mike4 is offline Offline
Newbie Poster

What browser are you?

 
0
  #1
Nov 22nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: What browser are you?

 
0
  #2
Nov 23rd, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 16
Reputation: mike4 is an unknown quantity at this point 
Solved Threads: 0
mike4's Avatar
mike4 mike4 is offline Offline
Newbie Poster

Re: What browser are you?

 
0
  #3
Nov 26th, 2007
Thanks,
Yes please may I see the code?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC