PHP Parse Error: syntax error, unexpected $end PHP Parse Error: errore di sintassi, inattesa fine $

In PHP 5, the following error may appears as an error entry in Apache error log or simply displays on PHP web page, even if calling to php scripts with php_info() works perfectly and successfully returns information on PHP configurations: In PHP 5, il seguente messaggio di errore maggio appare come un errore di entrata in Apache registro degli errori o semplicemente visualizza sulla pagina web PHP, anche se chiamata a php script con php_info () funziona perfettamente e con successo restituisce le informazioni sulle configurazioni di PHP:

Parse Error: syntax error, unexpected $end in ….. Parse Error: errore di sintassi, inatteso $ fine a ... .. scripts.php on line … scripts.php on-line ...

The error may caused by a missing curly bracket in PHP script coding. L'errore può causato da una parentesi graffe mancante nella codifica script PHP. Beside, it may also caused by error in PHP coding in class definition, as in PHP, a class definition cannot be broke up and distributed into multiple files, or into multiple PHP blocks, unless the break is within a method declaration. Accanto, si può anche causato da un errore in PHP, in una codifica definizione della classe, come in PHP, una definizione della classe non può essere spezzato e distribuito in più file, o in più blocchi PHP, a meno che la rottura è all'interno di un metodo di dichiarazione.

But more commonly, the error is often caused by the use of Short Open tags in PHP, Ma più comunemente, l'errore è spesso causato da l'uso di tag Breve Aperto in PHP,

To use short open tags, it must be enabled in PHP.INI. Per utilizzare i tag brevi aperto, deve essere abilitato in php.ini. Search for short_open_tag in PHP.INI, and change the value to On. Cerca short_open_tag in php.ini, e cambiare il valore su On. The line should look line: La linea dovrebbe apparire riga:

short_open_tag = On Il short_open_tag =

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una macchina tradotto pagina che è fornito "così come sono" senza garanzia. Machine translation may be difficult to understand. La traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in inglese whenever possible. ogniqualvolta ciò sia possibile.

Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e contribuire a My Digital Life Forums La mia vita digitale forum .



14 Responses to “PHP Parse Error: syntax error, unexpected $end” 14 Responses to "PHP Parse Error: errore di sintassi, inattesa fine $"

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

    thanks a lot, thanks a lot,
    short_open_tag = On solved that problem for me short_open_tag = Su risolto il problema per me

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

    Thanks for this post…saved me a lot of time! Grazie per questo post ... mi ha salvato un sacco di tempo!

  3. ike ome
    December 20th, 2006 04:57 20 dicembre 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. Ho visto il vostro distacco e il fatto di cambiare il file php.ini e sto ancora ottenere l'errore è il termine con Fedora Core 5 con MySQL 5.
    Can someone please help Qualcuno può per favore aiutateci

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

    } )
    } )
    else altro
    { (

    echo ‘No rows found!’; echo 'trovato n. righe!';
    } )

    mysql_free_result($result); mysql_free_result ($ result);

    mysql_close($connection); mysql_close ($ connessione);

    ?>

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

    Hello. Ciao. 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. Ho un problema con un file PHP che mostra la "PHP Parse Error: errore di sintassi, inattesa fine $" errore e ho seguito le istruzioni in questa pagina e corretti php.ini da OFF su ON.
    Now, the file don’t give any feedback when I open it. Ora, il file non danno alcun riscontro quando ho aperto. It only gives me a blank page and no info! E 'solo mi dà una pagina vuota e senza info! O_o O_O
    It’s strange… Can you help me please? E 'strano ... Potete aiutarmi per favore? Thanks. Grazie.

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

    This might be due to a missing quote also Questo potrebbe essere dovuto ad un citare anche scomparsi

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

    Thanks a ton, I’ve been trying to figure this out for the last few hours. Grazie una tonnellata, ho cercato di questa cifra per l'ultimo poche ore.

  7. gilbert Gilbert
    September 15th, 2007 20:20 Il 15 settembre 2007 20:20
    7

    thhanx a lot short_open_tag = On solved my problem. thhanx molto short_open_tag = Su risolto il mio problema. ypu are helpful ypu sono utili

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

    wow! thanks for your useful guidance… grazie per il vostro utile orientamento ...

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

    Very useful, thanks. Molto utile, grazie. I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini. Ho appena aggiornato a opensuse 10.3 dal 10.2 che aveva reimpostare la mia php.ini.

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

    Thanks for your time, But for me Its really didfficult to find a missing curly bracket. Grazie per il vostro tempo, ma per me la sua didfficult davvero a trovare una parentesi graffe mancanti.

    Is there any easiest way to findout with MISSING CURLY BRACKET. C'è un modo più semplice per findout con MANCA RICCI STAFFA. Any editor can do it for us. Ogni editore può farlo per noi.

    Please Help. Si prega di Aiuto.
    Rana

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

    syntax error, unexpected $end in C:\wamp\www\login.php on line 49 errore di sintassi, inattesa fine $ in C: \ wamp \ www \ login.php on line 49

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

    Thank you, Grazie,

    Been searching for ages for solution to this. Stato alla ricerca di età per la soluzione a questo.

    short_open_tag = On solved that problem for me. short_open_tag = Su risolto il problema per me.

    Finally I can open templates Infine non posso aprire i modelli

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

    Thank you very much ….. La ringrazio molto ... ..

  14. COMALite J COMALite J
    September 12th, 2008 23:57 Settembre 12, 2008 23:57
    14

    Rana, any source code editor that supports Find / Replace with Regular Expressions can help you balance braces. Rana, qualsiasi editor di codice sorgente che supporta Trova / Sostituisci con le espressioni regolari può aiutarvi a equilibrio tra parentesi graffe.

    Example: in Macrodobe Dreamweaver (any non-absolutely-ancient version), do [Ctrl]+[F] to activate Find/Replace, tell it: Esempio: nel Macrodobe Dreamweaver (qualsiasi assolutamente non-antica versione), fare [Ctrl] + [M] per attivare Trova / Sostituisci, che dire:

    Find in: Current Document Trovi in: documento corrente
    Search: Source Code Cerca: il codice sorgente
    Find: [{}] Trova: [()]
    Replace: (leave blank) Sostituire: (lasciare vuoto)
    Options: “Use Regular Expression” checked, all others unchecked. Opzioni: "Usa espressioni regolari" è selezionata, tutti gli altri deselezionata.

    Then simply do Find Next. Poi semplicemente fare Trova successivo. This will find both opening and closing braces. Ciò trovare sia di apertura e di chiusura tra parentesi graffe. For each opening brace you find, count them starting at 1. Per ogni coppia di apertura si trovano, li contano a partire da 1. For each closing brace, subtract 1 from the current count. Per ogni chiusura di parentesi graffe, sottrarre 1 dal l'attuale contare. You should wind up at 0 just before it wraps around back to the beginning (also in any specific function, block, etc. ). Si consiglia di vento fino a 0 poco prima che si avvolge attorno al inizio (anche in qualsiasi funzione specifica, blocco, ecc.)

    Eg Ad esempio,
    foreach ($array as $value) { // 1
    if ($value > 100) { // 2
    echo "$value too big!\n";
    } // 1
    } // 0

Leave a Reply Lascia un Commento

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> È possibile utilizzare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Iscriviti senza commentare


Custom Search

New Articles Nuovi articoli

Incoming Search Terms for the Article Cerca in entrata Termini per l'articolo

Parse error: syntax error, unexpected $end Errore di analisi: errore di sintassi, inattesa fine $ - -- php unexpected $end php $ fine inattesa - -- Parse error: syntax error, unexpected $end in Errore di analisi: errore di sintassi, inattesa fine a $ - -- unexpected $end $ fine inattesa - -- Parse error: syntax error, unexpected $end Errore di analisi: errore di sintassi, inattesa fine $ - -- Parse error: syntax error, unexpected $end in Errore di analisi: errore di sintassi, inattesa fine a $ - -- syntax error, unexpected $end errore di sintassi, inattesa fine $ - -- unexpected $end php imprevisto fine php $ - -- php unexpected end php fine inattesa - -- PHP Parse error: syntax error, unexpected $end PHP Parse errore: errore di sintassi, inattesa fine $ - -- php unexpected $end php $ fine inattesa - -- PHP Parse error: syntax error, unexpected $end PHP Parse errore: errore di sintassi, inattesa fine $ - -- unexpected $end in php imprevisto $ fine in php - -- php "unexpected $end" php "inaspettata fine $" - -- php unexpected $end in php $ inatteso fine a - -- syntax error, unexpected $end in errore di sintassi, inattesa fine a $ - -- syntax error, unexpected $end errore di sintassi, inattesa fine $ - -- $end php php $ fine - -- unexpected $end $ fine inattesa - -- unexpected $end in imprevisto $ fine a - -- PHP Parse error: syntax error, unexpected $end PHP Parse errore: errore di sintassi, inattesa fine $ - -- syntax error, unexpected $end in errore di sintassi, inattesa fine a $ - -- Parse error: syntax error, unexpected $end php Errore di analisi: errore di sintassi, inattesa fine $ php - -- "Parse error: syntax error, unexpected $end in" "Errore di analisi: errore di sintassi, inattesa fine a $" - -- "Parse error: syntax error, unexpected $end" "Errore di analisi: errore di sintassi, inattesa fine $" - -- Parse error: syntax error, unexpected $end i Errore di analisi: errore di sintassi, inattesa fine $ i - -- syntax error, unexpected $end php errore di sintassi, inattesa fine $ php - -- PHP Parse error: syntax error, unexpected $end in PHP Parse errore: errore di sintassi, inattesa fine a $ - -- syntax error, unexpected $end i errore di sintassi, inattesa fine $ i - -- syntax error, unexpected $end in php errore di sintassi, inattesa fine $ in PHP - -- $end error php $ fine di errore php - -- php error $end php $ errore fine - -- "PHP Parse error: syntax error, unexpected $end" "Errore di analisi PHP: errore di sintassi, inattesa fine $" - -- php parse error: syntax error, unexpected $end in php analizzare errore: errore di sintassi, inattesa fine a $ - -- Parse error: syntax error, unexpected $end in Errore di analisi: errore di sintassi, inattesa fine a $ - -- Parse error: syntax error Errore di analisi: errore di sintassi - -- php $end php $ fine - -- php unexpected $end in php $ inatteso fine a - -- Parse error: syntax error, unexpected $end Errore di analisi: errore di sintassi, inattesa fine $ - -- PHP Parse error: parse error, unexpected $end PHP Parse errore: Errore di analisi, inaspettata fine $ - -- unexpected end php imprevisto fine php - -- $end error in php $ fine di errore in PHP - -- $end php error php $ fine di errore - -- unexpected end in php imprevisto fine in php - -- php unexpected $end php $ fine inattesa - -- end() php fine () di php - -- parse error $end Errore di analisi $ fine - -- Parse error: syntax error, unexpected $end +php Errore di analisi: errore di sintassi, inattesa fine $ + php - -- PHP Parse error: parse error, unexpected $end PHP Parse errore: Errore di analisi, inaspettata fine $ - -- "Parse error: syntax error, unexpected ';' in" php5 "Errore di analisi: errore di sintassi, inatteso ';' in" php5 - --