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, instead of full tag,
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 .
Related Articles Articoli correlati
- PHP Allowed Memory Size Exchausted Fatal Error Php ammessi dimensione della memoria Exchausted errore fatale
- Robocopy Syntax, Command Line Switches and Examples Robocopy sintassi, della riga di comando ed esempi
- Internal Error 2739 Error in Vista (32 or 64-bit) When Install Adobe Photoshop CS3 and Reflector Related Programs Errore interno 2739 Errore in Vista (32 o 64 bit) Quando Installa Adobe Photoshop CS3 e Reflector Related Programs
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL query SQL errore nella classe WPDB
- Failed or Missing Dependency of glibc-common Error Impossibile o mancante di dipendenza glibc-common errore
- PHP Scripts open_basedir Restriction in Effect Error Script PHP open_basedir restrizione in vigore errore
- Oracle Database Import Error 3113/3114 Database Oracle importazione errore 3113/3114
- Gmail Email Message Corrupted Error Messaggio di posta elettronica Gmail danneggiato errore
- Spb Finance Synchronization Error in Microsoft ActiveSync Spb Finance errore di sincronizzazione di Microsoft ActiveSync
- TCP/IP Has Reached the Security Limit Imposed on the Number of Concurrent TCP Connect Attempts Error on Windows Vista TCP / IP ha raggiunto il limite di sicurezza imposti sul numero di tentativi di collegare il protocollo TCP errore in Windows Vista

































May 14th, 2006 23:30 Maggio 14th, 2006 23:30
thanks a lot, thanks a lot,
short_open_tag = On solved that problem for me short_open_tag = Su risolto il problema per me
August 22nd, 2006 22:49 Agosto 22, 2006 22:49
Thanks for this post…saved me a lot of time! Grazie per questo post ... mi ha salvato un sacco di tempo!
December 20th, 2006 04:57 20 dicembre 2006 04:57
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);
?>
February 5th, 2007 07:41 Il 5 Febbraio 2007 07:41
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.
March 29th, 2007 22:29 29 marzo 2007 22:29
This might be due to a missing quote also Questo potrebbe essere dovuto ad un citare anche scomparsi
August 30th, 2007 19:39 30 agosto 2007 19:39
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.
September 15th, 2007 20:20 Il 15 settembre 2007 20:20
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
September 30th, 2007 12:07 30 settembre 2007 12:07
wow! thanks for your useful guidance… grazie per il vostro utile orientamento ...
October 23rd, 2007 18:52 Ottobre 23, 2007 18:52
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.
February 27th, 2008 20:22 27 Febbraio 2008 20:22
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
March 8th, 2008 14:27 Mar 8th, 2008 14:27
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
March 17th, 2008 00:32 17 marzo 2008 00:32
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
May 10th, 2008 14:10 10 Maggio 2008 14:10
Thank you very much ….. La ringrazio molto ... ..
September 12th, 2008 23:57 Settembre 12, 2008 23:57
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) { // 1if ($value > 100) { // 2
echo "$value too big!\n";
} // 1
} // 0