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!
I have a custom popup script that works fine with Windows XP Professional, but not with XP Home. I want to add a php detection script that will detect wether the user is using XP Home or XP Professional and then redirect the user according to these variables. Any ideas how this can be done?
Your pop-up script is not dependent on the OS - its the Web Browser and its version you need to check.
you can do this either using JS or PHP.
Javascript : navigator.userAgent
PHP : $_SERVER['HTTP_USER_AGENT']