Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
- $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
- $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
- if ($iphone || $android || $ipod == true)
- {
- header('Location: http://mobile.site.com/');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement