PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Say I have a site called mysite.com and mysite.com/mobile containing PHP scripts that'll generate the WML pages for mobile devices using WAP.
If someone goes to mysite.com on his mobile device, he'll automatically be redirected to mysite.com/mobile.
How can I detect if the browser is a mobile or PC browser ?