PHP Parse Error: syntax error, unexpected $end PHPのパースエラー:構文エラーが発生すると、予期しない$エンド
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: PHP 5では、 5月に、次のエラーが表示されるエラーのエントリをApacheのエラーログに記録または、単にPHPのWebページが表示され、たとえからPHPスクリプトを呼び出すphp_info ( )の動作を完全にphpの設定情報を正常に戻り値:
Parse Error: syntax error, unexpected $end in …..解析エラー:構文エラーが発生すると、予期しない$最後に… .. scripts.php on line … scripts.php上の行…
The error may caused by a missing curly bracket in PHP script coding.行方不明のエラーが原因で発生する中括弧で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.横に、それが原因でエラーが発生することもPHPのコーディングでのクラス定義のように、 PHPのクラスで定義されて解散することはできませんと分散を複数のファイル、または複数のPHPのブロックをしない限りは、メソッドの宣言には、区切りのです。
But more commonly, the error is often caused by the use of Short Open tags in PHP,しかし、もっとよく、次のエラーが原因では、しばしばタグの使用をショートオープンPHPでは、 instead of full tag,
To use short open tags, it must be enabled in PHP.INI.ショートオープンタグを使用し、それを有効にしなければならないphp.iniのです。 Search for short_open_tag in PHP.INI, and change the value to On. php.iniのshort_open_tagを検索し、上の値を変更してください。 The line should look line:その行は次の行:
short_open_tag = On short_open_tag =上
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- WordPress MySQL SQL Query Error in WPDB Class WordPressのMySQLのSQLクエリにエラーが発生wpdbクラス
- gmmktime Error in WordPress and MagpieRSS gmmktimeにエラーが発生WordPressのとmagpierss
- PHP Allowed Memory Size Exchausted Fatal Error PHPの可メモリサイズexchausted致命的なエラー
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3ウェブサーバーでは、 Windows XPをインストールするのApache2 、 PHP5とmysql4 -パート3
- How to Customize, Modify or Change WordPress Database Connection Error Pageをカスタマイズする方法、修正、または変更WordPressのデータベースへの接続エラーページ
- Comments and Comment Blocks in PHPコメントやコメントブロックはPHP
- Oracle Database Import Error 3113/3114 Oracleデータベースにインポートエラーが発生3114分の3113
- Oracle ORA-14074 Create or Add New Partition Fails ErrorオラクルのOra - 14074新しいパーティションを作成または追加に失敗するエラーが発生
- Oracle EXP-00091 Error When Export Database Oracleの輸出- 00091エラーが発生する輸出データベース
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files Apacheの起動に失敗しましたのhttpdのためにそのようなことはできません。 mod_bwlimited開いたり、ファイルmod_log_bytesまたはmod_bandwidth















May 14th, 2006 23:30 2006年5月14日23:30
thanks a lot,どうもありがとう、
short_open_tag = On solved that problem for meその問題を解決するためshort_open_tag =メイン
August 22nd, 2006 22:49 2006年8月22日22:49
Thanks for this post…saved me a lot of time!この投稿いただきありがとうございます…私に多くの時間を保存!
December 20th, 2006 04:57 2006年12月20日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.あなたの投稿を見たとは、 php.iniファイルを変更するには私はまだ実行されて就学許可証のエラーが発生するとFedora Coreの5件のMySQL 5 。
Can someone please help缶は誰か助けてください
0) 0 )
{ (
while ($row = mysql_fetch_assoc($result))中(します$ row = mysql_fetch_assoc ( $結果) )
{ (
print $row(’cust_id’) .印刷$行( ' cust_id ' ) 。 ‘-’ . ' -' 。 $row(’cust_url_desc’) ; $行( ' cust_url_desc ' ) ;
} )
} )
elseその他の
{ (
echo ‘No rows found!’;エコーのない行が見つかりました! ' ;
} )
mysql_free_result($result);するmysql_free_result ( $ result ) ;
mysql_close($connection); mysql_close ( $接続) ;
?>ですか? >
February 5th, 2007 07:41 2007年2月5日07:41
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.私には問題があるPHPファイルが表示さの" PHPのパースエラー:構文エラーが発生すると、予期しない$終わり"というエラーと私の指示に従っている場合、 php.iniの修正からこのページとオフを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 o_o
It’s strange… Can you help me please?ことの奇妙な…ことを手伝ってもらえますか? Thanks.ありがとう。
March 29th, 2007 22:29 2007年3月29日22:29
This might be due to a missing quote alsoこのかもしれない、行方不明のために引用符も
August 30th, 2007 19:39 2007年8月30日19:39
Thanks a ton, I’ve been trying to figure this out for the last few hours.トンのおかげで、私はこのアウトをしようとして図の最後の数時間です。
September 15th, 2007 20:20 2007年9月15日20:20
thhanx a lot short_open_tag = On solved my problem.たくさんshort_open_tag = thhanx私の問題を解決します。 ypu are helpful ypuは有用
September 30th, 2007 12:07 2007年9月30日12:07
wow!うわー! thanks for your useful guidance…有用なガイダンスをお寄せいただきありがとうございます…
October 23rd, 2007 18:52 2007年10月23日18:52
Very useful, thanks.非常に便利です、ありがとう。 I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini.ただopenSUSEの10.3から10.2にアップグレードしていた私のphp.iniのリセットです。
February 27th, 2008 20:22 2008年2月27日20:22
Thanks for your time, But for me Its really didfficult to find a missing curly bracket.お時間をいただきありがとうございますが、私は本当にdidfficult中括弧を検索する行方不明です。
Is there any easiest way to findout with MISSING CURLY BRACKET.簡単な方法はありますかfindout中括弧で行方不明です。 Any editor can do it for us.任意のエディタを使ってやってください。
Please Help.お助けします。
Ranaラナ
March 8th, 2008 14:27 2008年3月8日14:27
syntax error, unexpected $end in C:\wamp\www\login.php on line 49構文エラーが発生すると、予期しない$エンドではC : \ wamp \ www \ login.phpを49行
March 17th, 2008 00:32 2008年3月17日00:32
Thank you,ありがとうございました、
Been searching for ages for solution to this.年齢のための解決策を探している本です。
short_open_tag = On solved that problem for me. short_open_tag =上の問題は解決することだ。
Finally I can open templates最後に、私はテンプレートを開くことができます
May 10th, 2008 14:10 2008年5月10日14:10
Thank you very much …..どうもありがとうございました… ..