PHP analizan error: error del sintaxis, $end inesperado

En PHP 5, el error siguiente puede aparece como una entrada del error en registro de errores de Apache o simplemente exhibiciones en Web page de PHP, aunque el llamar a las escrituras del php con php_info () trabaja perfectamente y vuelve con éxito la información sobre configuraciones de PHP:

Analice el error: error del sintaxis, $end inesperados en ..... scripts.php en línea…

El error puede causado por una llave que falta en la codificación de la escritura de PHP. Al lado de, puede también causado por error en la codificación de PHP en la definición de la clase, como en PHP, una clase que la definición no puede ser se rompió para arriba y distribuido en archivos múltiples, o en bloques múltiples de PHP, a menos que la rotura esté dentro de un declaración del método.

Pero más comunmente, el error es causado a menudo por el uso de las etiquetas abiertas del cortocircuito en PHP,

Para utilizar brevemente etiquetas abiertas, debe ser permitido en PHP.INI. Busque para el short_open_tag en PHP.INI, y cambie el valor a encendido. La línea debe mirar la línea:

short_open_tag = encendido

IMPORTANTE: Ésta es una página traducida por computador se proporciona que “como está” sin garantía. La traducción automática puede ser difícil de entender. Refiérase por favor artículo inglés original siempre que sea posible.

Comparta y contribuya o consiga la ayuda técnica y ayude en Mis foros de la vida de Digital.



13 Responses to “PHP Parse Error: syntax error, unexpected $end”

  1. drwael
    May 14th, 2006 23:30
    1

    thanks a lot,
    short_open_tag = On solved that problem for me

  2. Paul
    August 22nd, 2006 22:49
    2

    Thanks for this post…saved me a lot of time!

  3. ike
    December 20th, 2006 04:57
    3

    I saw your posting and made the change to the php.ini file and I’m still getting the error the is being run with Fedora Core 5 with MySql 5.
    Can someone please help

    0)
    {
    while ($row = mysql_fetch_assoc($result))
    {
    print $row(’cust_id’) . ‘-’ . $row(’cust_url_desc’) ;

    }
    }
    else
    {

    echo ‘No rows found!’;
    }

    mysql_free_result($result);

    mysql_close($connection);

    ?>

  4. Bruno
    February 5th, 2007 07:41
    4

    Hello. I have a problem with a PHP file that shows the “PHP Parse Error: syntax error, unexpected $end” error and I followed the instructions in this page and corrected the php.ini from OFF to ON.
    Now, the file don’t give any feedback when I open it. It only gives me a blank page and no info! O_o
    It’s strange… Can you help me please? Thanks.

  5. phpcoder
    March 29th, 2007 22:29
    5

    This might be due to a missing quote also

  6. Shawn
    August 30th, 2007 19:39
    6

    Thanks a ton, I’ve been trying to figure this out for the last few hours.

  7. gilbert
    September 15th, 2007 20:20
    7

    thhanx a lot short_open_tag = On solved my problem. ypu are helpful

  8. Hamed
    September 30th, 2007 12:07
    8

    wow! thanks for your useful guidance…

  9. Guy
    October 23rd, 2007 18:52
    9

    Very useful, thanks. I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini.

  10. Rana
    February 27th, 2008 20:22
    10

    Thanks for your time, But for me Its really didfficult to find a missing curly bracket.

    Is there any easiest way to findout with MISSING CURLY BRACKET. Any editor can do it for us.

    Please Help.
    Rana

  11. sugi
    March 8th, 2008 14:27
    11

    syntax error, unexpected $end in C:\wamp\www\login.php on line 49

  12. Richard
    March 17th, 2008 00:32
    12

    Thank you,

    Been searching for ages for solution to this.

    short_open_tag = On solved that problem for me.

    Finally I can open templates

  13. Raghavendra
    May 10th, 2008 14:10
    13

    Thank you very much …..

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

php unexpected $end - Parse error: syntax error, unexpected $end - Parse error: syntax error, unexpected $end in - unexpected $end - Parse error: syntax error, unexpected $end - syntax error, unexpected $end - unexpected $end php - php unexpected $end - Parse error: syntax error, unexpected $end in - php "unexpected $end" - syntax error, unexpected $end - syntax error, unexpected $end in - php unexpected end - PHP Parse error: syntax error, unexpected $end - $end php - unexpected $end in php - php $end - Unexpected $end - php unexpected $end in - unexpected $end in - php Parse error: syntax error, unexpected $end - syntax error, unexpected $end in - "Parse error: syntax error, unexpected $end" - PHP Parse error: syntax error, unexpected $end - "syntax error, unexpected $end" - "PHP Parse error: syntax error, unexpected $end" - php $end error - php syntax error, unexpected $end - php end - syntax error, unexpected $end php - php error $end - PHP unexpected $end in - php syntax error, unexpected $end in - PHP Parse error: syntax error, unexpected $end - $end error meaning in php - all - "parse error: syntax error, unexpected $end in" - $end error php - PHP Parse error: syntax error, unexpected $end i - PHP Parse error: syntax error, unexpected $end in - Parse error: syntax error, unexpected $end in C:\wamp\www\ - $end php error - $end error in php - $end in php - Parse error: syntax error, unexpected $end - syntax error, unexpected $end i - php Parse error: syntax error, unexpected $end in - Parse error: syntax error, unexpected $end wordpress - syntax error in php - "$end" php -