•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 455,968 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,739 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 432 | Replies: 2
![]() |
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
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
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 636
Reputation:
Rep Power: 3
Solved Threads: 71
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Button to open a new browser window (ASP.NET)
- Lost browser links,internet options etc...toolbar (Web Browsers)
- Can't run JSP in Browser (JSP)
- how to enable my browser for java (Web Browsers)
- Samba browser (OS X)
- browser shutting down..... (Web Browsers)
- Opera web browser question (Techies' Lounge)
Other Threads in the PHP Forum
- Previous Thread: hyperlink in php
- Next Thread: online projects


Linear Mode