PHP Parse Error: syntax error, unexpected $end PHP Parse error: syntax error, unexpected $ end
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, die folgende Fehlermeldung erscheint als Fehler Eintrag in Apache Fehlerprotokoll oder einfach zeigt auf PHP-Web-Seite, auch wenn Aufruf zu php-Skripte mit php_info () funktioniert perfekt und erfolgreich liefert Informationen über PHP-Konfigurationen:
Parse Error: syntax error, unexpected $end in ….. Parse error: syntax error, unexpected $ end in… .. scripts.php on line … scripts.php on line…
The error may caused by a missing curly bracket in PHP script coding. Der Fehler kann durch eine fehlende Klammer Korkenzieherlocken im PHP-Skript Programmierung. 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. Außer, es kann auch durch Fehler in PHP-Code in der Klasse definiert, wie in PHP, eine Klasse Definition kann nicht gebrochen und verteilt auf mehrere Dateien oder in mehrere PHP-Blöcke, es sei denn, der Bruch ist innerhalb einer Methode Erklärung an.
But more commonly, the error is often caused by the use of Short Open tags in PHP, Doch häufiger, der Fehler wird oft durch die Verwendung von offenen Short-Tags in PHP, instead of full tag,
To use short open tags, it must be enabled in PHP.INI. Zur Verwendung von kurzen offenen Tags, es muss aktiviert sein, in der php.ini. Search for short_open_tag in PHP.INI, and change the value to On. Suche nach short_open_tag in der php.ini, und ändern Sie den Wert auf On. The line should look line: Die Zeile sollte aussehen:
short_open_tag = On short_open_tag = On
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren .
Related Articles Verwandte Artikel
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL-SQL-Abfrage Fehler in WPDB Klasse
- gmmktime Error in WordPress and MagpieRSS gmmktime Fehler in WordPress und magpieRSS
- PHP Allowed Memory Size Exchausted Fatal Error PHP erlaubt Speichergröße Exchausted Fatal Error
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 3
- How to Customize, Modify or Change WordPress Database Connection Error Page Wie Anpassen, zu modifizieren oder zu ändern WordPress Datenbank-Verbindung Fehlerseite
- Oracle Database Import Error 3113/3114 Oracle-Datenbank importieren Fehler 3113/3114
- Comments and Comment Blocks in PHP Kommentare Kommentar-Blöcke in PHP
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 schaffen oder neue Partition schlägt fehl, Fehler
- Oracle EXP-00091 Error When Export Database Oracle exp-00091-Fehler angezeigt, wenn Datenbank exportieren
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files Starting Apache HTTPD scheiterte an kann nicht geöffnet werden "oder" Nein Solche mod_bwlimited, mod_log_bytes oder mod_bandwidth Dateien

































May 14th, 2006 23:30 14. Mai 2006 23:30
thanks a lot, Thanks a lot,
short_open_tag = On solved that problem for me short_open_tag = On Problem gelöst, dass für mich
August 22nd, 2006 22:49 22. Aug 2006 22:49
Thanks for this post…saved me a lot of time! Vielen Dank für diesen Post… gespeichert mir eine Menge Zeit!
December 20th, 2006 04:57 20. Dez 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. Ich habe Ihr Posting und dem Wechsel auf die php.ini-Datei, und ich bin immer noch der Fehler wird der Lauf mit Fedora Core 5 mit MySQL 5.
Can someone please help Kann jemand bitte helfen
0)
{ (
while ($row = mysql_fetch_assoc($result)) while ($ row = mysql_fetch_assoc ($ result))
{ (
print $row(’cust_id’) . print $ Zeile ( "cust_id"). ‘-’ . '-'. $row(’cust_url_desc’) ; $ row ( 'cust_url_desc');
} )
} )
else sonst
{ (
echo ‘No rows found!’; echo 'Keine Zeilen gefunden! ";
} )
mysql_free_result($result); mysql_free_result ($ result);
mysql_close($connection); mysql_close ($ connection);
?>
February 5th, 2007 07:41 5. Februar 2007 07:41
Hello. Hallo. 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. Ich habe ein Problem mit einer PHP-Datei zeigt, dass der "PHP Parse error: syntax error, unexpected $ end"-Fehler, und ich folgte den Anweisungen auf dieser Seite und korrigiert die php.ini von OFF auf ON.
Now, the file don’t give any feedback when I open it. Nun wird die Datei geben keine Rückmeldung, wenn ich es öffnen. It only gives me a blank page and no info! Es gibt mir nur eine leere Seite und keine Meldung! O_o O_O
It’s strange… Can you help me please? Es ist merkwürdig… Können Sie mir helfen bitte? Thanks. Danke.
March 29th, 2007 22:29 29. März 2007 22:29
This might be due to a missing quote also Dies könnte darauf zurückzuführen sein, ein fehlendes Angebot auch
August 30th, 2007 19:39 30. August 2007 19:39
Thanks a ton, I’ve been trying to figure this out for the last few hours. Thanks a ton, ich habe versucht, diese Zahl für die letzten Stunden.
September 15th, 2007 20:20 15. September 2007 20:20
thhanx a lot short_open_tag = On solved my problem. thhanx viel short_open_tag = On mein Problem gelöst. ypu are helpful ypu sind hilfreich
September 30th, 2007 12:07 September 30th, 2007 12:07
wow! Wow! thanks for your useful guidance… Dank für Ihre nützliche Orientierungshilfen…
October 23rd, 2007 18:52 23. Oktober 2007 18:52
Very useful, thanks. Sehr nützlich, danke. I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini. Ich habe gerade ein Upgrade auf openSUSE 10,3 von 10,2 hatte die Reset meine php.ini.
February 27th, 2008 20:22 27. Februar 2008 20:22
Thanks for your time, But for me Its really didfficult to find a missing curly bracket. Vielen Dank für Ihre Zeit, aber für mich wirklich Seine didfficult zu finden, eine fehlende Klammer Korkenzieherlocken.
Is there any easiest way to findout with MISSING CURLY BRACKET. Gibt es eine einfachste Art und Weise zu findout mit fehlenden CURLY BRACKET. Any editor can do it for us. Jeder Redakteur kann es für uns.
Please Help. Bitte helfen.
Rana
March 8th, 2008 14:27 8. März, 2008 14:27
syntax error, unexpected $end in C:\wamp\www\login.php on line 49 syntax error, unexpected $ end in C: \ WAMP \ www \ login.php on line 49
March 17th, 2008 00:32 17. März, 2008 00:32
Thank you, Danke,
Been searching for ages for solution to this. Gewesen der Suche nach Altersgruppen für diese Lösung.
short_open_tag = On solved that problem for me. short_open_tag = On Problem gelöst, dass für mich.
Finally I can open templates Schließlich kann ich offen Vorlagen
May 10th, 2008 14:10 10. Mai 2008 14:10
Thank you very much ….. Vielen Dank… ..