$pda_agents = Array('Windows CE', 'NetFront', 'Palm OS', 'Blazer', 'Elaine', 'WAP', 'Plucker', 'AvantGo'); $http_user_agent = $_SERVER['HTTP_USER_AGENT']; foreach($pda_agents as $pda_agent) { $found = stristr($http_user_agent, $pda_agent); if($found) header('Location: /english/pda.php'); } ?>