Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $j2me = strripos($_SERVER["HTTP_USER_AGENT"], 'J2ME/MIDP');
- $iphone = strripos($_SERVER["HTTP_USER_AGENT"], 'iPhone');
- $om = strripos($_SERVER["HTTP_USER_AGENT"], 'Opera Mini');
- if($j2me === false & $iphone === false & $om === false)
- {
- header('Location: desktop.php');
- }
- else
- {
- header('Location: mobile.php');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement