Foros del Web » Programando para Internet » PHP »

Unexpected $end on line 60?

Estas en el tema de Unexpected $end on line 60? en el foro de PHP en Foros del Web. Me envia este mensaje el navegador. No encuentro el fallo por ningun lado y ademas, el programa nisiquiera tiene linea 60... alguien podria ayudarme? xD ...
  #1 (permalink)  
Antiguo 25/12/2010, 13:29
Avatar de RAZGRIZ24  
Fecha de Ingreso: septiembre-2009
Mensajes: 143
Antigüedad: 14 años, 7 meses
Puntos: 2
Unexpected $end on line 60?

Me envia este mensaje el navegador.

No encuentro el fallo por ningun lado y ademas, el programa nisiquiera tiene linea 60... alguien podria ayudarme? xD soy novato.

<?php
//Comprobamos que el usuario ha iniciado sesion con una contraseÒa valida
if($_SESSION[authuser]!=1) {
echo 'you are not allowed to view this page, you can register by clicking ';
echo '<a href="register.php">here</a>';
exit();
}
?>
<HTML>
<head>
<title>
<?php
if(isset($_GET['FAVMOVIE'])) {
echo ' - ';
echo $_GET ['FAVMOVIE'];
?>
</title>
</head>
<body>
<?php include 'header.php';
?>
<?php
function listmovies_1() {
echo '1. The lord of the rings <br>';
echo '2. Grand Torisno <br>';
echo '3. The godfather <br>';
echo '4. hiden trace <br>';
echo '5. Man on fire <br>';
}
function listmovies_2() {
echo '6. The karate kid (2010 version) <br>';
echo '7. The prince of persia <br>';
echo '8. Pirates of the caribean <br>';
echo '9. Open hurt <br>';
echo '10. Seducing a Stranger <br>';
}
if (isset ($_GET ['FAVMOVIE'])) {
echo 'Welcome to our site.';
echo $_SESSION['username'];
echo '<br>';
$movierate = 7;
echo 'Mi personal rate for this movie is ';
echo $movierate;
} else {
echo 'My top';
echo $_GET['movienum'];
echo 'movies are';
echo '<br>';
listmovies_1();
if ($_GET['movienum'] == 10) {
listmovies_2();
}
}
?>
</body>
</HTML>


Gracias compañeros!
  #2 (permalink)  
Antiguo 25/12/2010, 13:35
 
Fecha de Ingreso: agosto-2010
Ubicación: Oakland california
Mensajes: 393
Antigüedad: 13 años, 8 meses
Puntos: 3
Respuesta: Unexpected $end on line 60?

<?php
//Comprobamos que el usuario ha iniciado sesion con una contraseÒa valida
if($_SESSION[authuser]!=1) {
echo 'you are not allowed to view this page, you can register by clicking ';
echo '<a href="register.php">here</a>';
exit();
}
?>
<HTML>
<head>
<title>
<?php
if(isset($_GET['FAVMOVIE'])) {
echo ' - ';
echo $_GET ['FAVMOVIE'];
?>
</title>
</head>
<body>
<?php include 'header.php';
?>
<?php
function listmovies_1() {
echo '1. The lord of the rings <br>';
echo '2. Grand Torisno <br>';
echo '3. The godfather <br>';
echo '4. hiden trace <br>';
echo '5. Man on fire <br>';
}
function listmovies_2() {
echo '6. The karate kid (2010 version) <br>';
echo '7. The prince of persia <br>';
echo '8. Pirates of the caribean <br>';
echo '9. Open hurt <br>';
echo '10. Seducing a Stranger <br>';
}
if (isset ($_GET ['FAVMOVIE'])) {
echo 'Welcome to our site.';
echo $_SESSION['username'];
echo '<br>';
$movierate = 7;
echo 'Mi personal rate for this movie is ';
echo $movierate;
} else {
echo 'My top';
echo $_GET['movienum'];
echo 'movies are';
echo '<br>';
listmovies_1();
if ($_GET['movienum'] == 10) {
listmovies_2();
}
} esta esta de mas..
?>
</body>
</HTML>
  #3 (permalink)  
Antiguo 25/12/2010, 15:19
Avatar de RAZGRIZ24  
Fecha de Ingreso: septiembre-2009
Mensajes: 143
Antigüedad: 14 años, 7 meses
Puntos: 2
Respuesta: Unexpected $end on line 60?

No lo creo compañero:

<?php
//Comprobamos que el usuario ha iniciado sesion con una contraseÒa valida
if($_SESSION[authuser]!=1) {
echo 'you are not allowed to view this page, you can register by clicking ';
echo '<a href="register.php">here</a>';
exit();
}
?>
<HTML>
<head>
<title>
<?php
if(isset($_GET['FAVMOVIE'])) {
echo ' - ';
echo $_GET ['FAVMOVIE'];
?>
</title>
</head>
<body>
<?php include 'header.php';
?>
<?php
function listmovies_1() {
echo '1. The lord of the rings <br>';
echo '2. Grand Torisno <br>';
echo '3. The godfather <br>';
echo '4. hiden trace <br>';
echo '5. Man on fire <br>';
}
function listmovies_2() {
echo '6. The karate kid (2010 version) <br>';
echo '7. The prince of persia <br>';
echo '8. Pirates of the caribean <br>';
echo '9. Open hurt <br>';
echo '10. Seducing a Stranger <br>';
}
if (isset ($_GET ['FAVMOVIE'])) {
echo 'Welcome to our site.';
echo $_SESSION['username'];
echo '<br>';
$movierate = 7;
echo 'Mi personal rate for this movie is ';
echo $movierate;
} else {
echo 'My top';
echo $_GET['movienum'];
echo 'movies are';
echo '<br>';
listmovies_1();
if ($_GET['movienum'] == 10) {
listmovies_2();
}
}
?>
</body>
</HTML>

A ver que dicen los demas.
  #4 (permalink)  
Antiguo 25/12/2010, 15:32
 
Fecha de Ingreso: agosto-2010
Ubicación: Oakland california
Mensajes: 393
Antigüedad: 13 años, 8 meses
Puntos: 3
Respuesta: Unexpected $end on line 60?

entonces te falta una al final

<?php
//Comprobamos que el usuario ha iniciado sesion con una contraseÒa valida
if($_SESSION[authuser]!=1) {
echo 'you are not allowed to view this page, you can register by clicking ';
echo '<a href="register.php">here</a>';
exit();
}
?>
<HTML>
<head>
<title>
<?php
if(isset($_GET['FAVMOVIE'])) { esta no la cierras
echo ' - ';
echo $_GET ['FAVMOVIE'];
?>
</title>
</head>
<body>
<?php include 'header.php';
?>
<?php
function listmovies_1() {
echo '1. The lord of the rings <br>';
echo '2. Grand Torisno <br>';
echo '3. The godfather <br>';
echo '4. hiden trace <br>';
echo '5. Man on fire <br>';
}
function listmovies_2() {
echo '6. The karate kid (2010 version) <br>';
echo '7. The prince of persia <br>';
echo '8. Pirates of the caribean <br>';
echo '9. Open hurt <br>';
echo '10. Seducing a Stranger <br>';
}
if (isset ($_GET ['FAVMOVIE'])) {
echo 'Welcome to our site.';
echo $_SESSION['username'];
echo '<br>';
$movierate = 7;
echo 'Mi personal rate for this movie is ';
echo $movierate;
} else {
echo 'My top';
echo $_GET['movienum'];
echo 'movies are';
echo '<br>';
listmovies_1();
if ($_GET['movienum'] == 10) {
listmovies_2();
}
}
?>
</body>
</HTML>

Etiquetas: end, line
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:31.