Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/02/2011, 20:32
Avatar de suta123
suta123
 
Fecha de Ingreso: octubre-2010
Mensajes: 47
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Parse error: syntax error, unexpected $end

intenta así:
Código PHP:
<?php
$agent 
$_SERVER['HTTP_USER_AGENT'];
echo 
"User agent reported as: " $agent "\n";
if (
eregi("BlackBerry"$agent)) {
        echo 
'
        <SCRIPT LANGUAGE="javascript">
        location.href = "Login.php";
        </SCRIPT>
        '

}
else 
{
        echo 
'
        <SCRIPT LANGUAGE="javascript">
        location.href = "Login2.php";
        </SCRIPT>     
        '
;
}
?>