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中,以下错误可能出现的错误进入Apache中的错误日志或干脆显示PHP的网页,即使通话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中,

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.搜索short_open_tag在php.ini中,改变价值上。 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 我的数字生活论坛 .



13 Responses to “PHP Parse Error: syntax error, unexpected $end” 13日的反应“的PHP解析错误:语法错误,意想不到的元月底”

  1. drwael
    May 14th, 2006 23:30 2006年5月14日23时30分
    1

    thanks a lot,感谢了很多,
    short_open_tag = On solved that problem for me short_open_tag =就解决了这个问题对我来说

  2. Paul保罗
    August 22nd, 2006 22:49 2006年8月22日22时49分
    2

    Thanks for this post…saved me a lot of time!感谢这个职位…救了我很多时间!

  3. ike IKE协议
    December 20th, 2006 04:57 2006年12月20日4时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.我看到您的留言,并提出改变php.ini文件和我仍然收到错误的,是与正在运行的是Fedora Core 5与MySQL 5 。
    Can someone please help有人可以请帮帮忙

    0) 0 )
    {
    while ($row = mysql_fetch_assoc($result))而美元(连续= 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 ( $结果) ;

    mysql_close($connection); mysql_close ( $连线) ;

    ?> ? >

  4. Bruno布鲁诺
    February 5th, 2007 07:41 2007年2月5日7时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.我有一个问题, PHP文件,显示“的PHP解析错误:语法错误,意想不到的元月底”的错误,我按照指示在此页和纠正在php.ini从小康到对。
    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.谢谢。

  5. phpcoder
    March 29th, 2007 22:29 2007年3月29日22时29分
    5

    This might be due to a missing quote also这可能是由于一名失踪报价也

  6. Shawn肖恩
    August 30th, 2007 19:39 2007年8月30日19时39分
    6

    Thanks a ton, I’ve been trying to figure this out for the last few hours.感谢1吨,我一直在尝试的数字,这在过去几个小时。

  7. gilbert吉尔伯特
    September 15th, 2007 20:20 2007年9月15日20时20分
    7

    thhanx a lot short_open_tag = On solved my problem. thhanx了很多short_open_tag =对解决我的问题。 ypu are helpful ypu帮助

  8. Hamed哈米德
    September 30th, 2007 12:07 2007年9月30日12时07分
    8

    wow!哇! thanks for your useful guidance…感谢您了有益的指导…

  9. Guy家伙
    October 23rd, 2007 18:52 2007年10月23日18时52分
    9

    Very useful, thanks.非常有用,感谢。 I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini.我升级到了openSUSE的10.3 ,从2月10日已重设我的php.ini的影响。

  10. Rana
    February 27th, 2008 20:22 2008年2月27日20时22分
    10

    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

  11. sugi
    March 8th, 2008 14:27 2008年3月8日14时27分
    11 11月

    syntax error, unexpected $end in C:\wamp\www\login.php on line 49语法错误,意想不到的元月底在C : \ wamp \ WWW的\ login.php上线49

  12. Richard理查德
    March 17th, 2008 00:32 2008年3月17日0时32分
    12 12月

    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最后,我可以打开模板

  13. Raghavendra raghavendra
    May 10th, 2008 14:10 2008年5月10日14时10分
    13 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> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

php unexpected $end PHP的意想不到的元月底 - - 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 - - php unexpected $end PHP的意想不到的元月底 - - Parse error: syntax error, unexpected $end in 解析错误:语法错误,意想不到的元月底在 - - php "unexpected $end" PHP的“出乎意料元,年底” - - syntax error, unexpected $end in 语法错误,意想不到的元月底在 - - syntax error, unexpected $end 语法错误,意想不到的元月底 - - php unexpected end PHP的意外结尾 - - $end php 元月底的PHP - - unexpected $end in php 意想不到的元月底在PHP - - php $end PHP的元月底 - - PHP Parse error: syntax error, unexpected $end PHP的解析错误:语法错误,意想不到的元月底 - - php unexpected $end in PHP的意想不到的元月底在 - - unexpected $end in 意想不到的元月底在 - - Unexpected $end 意想不到的元月底 - - php Parse error: syntax error, unexpected $end PHP的解析错误:语法错误,意想不到的元月底 - - syntax error, unexpected $end in 语法错误,意想不到的元月底在 - - "Parse error: syntax error, unexpected $end" “解析错误:语法错误,意想不到的元月底” - - "syntax error, unexpected $end" “语法错误,意想不到的元月底” - - PHP Parse error: syntax error, unexpected $end PHP的解析错误:语法错误,意想不到的元月底 - - "PHP Parse error: syntax error, unexpected $end" “ PHP的解析错误:语法错误,意想不到的元月底” - - php syntax error, unexpected $end PHP的语法错误,意想不到的元月底 - - syntax error, unexpected $end php 语法错误,意想不到的元月底的PHP - - php error $end PHP的错误元月底 - - php end PHP中结束 - - PHP unexpected $end in PHP的意想不到的元月底在 - - php syntax error, unexpected $end in PHP的语法错误,意想不到的元月底在 - - PHP Parse error: syntax error, unexpected $end PHP的解析错误:语法错误,意想不到的元月底 - - $end error meaning in php 元月底错误的意义在PHP - - all 全部 - - $end error php 元月底错误的PHP - - php $end error PHP的元月底错误 - - "parse error: syntax error, unexpected $end in" “解析错误:语法错误,意想不到的元月底在” - - $end php error 元月底的PHP错误 - - $end error in php 元月底的错误在PHP - - $end in php 元月底在PHP - - Parse error: syntax error, unexpected $end in C:\wamp\www\ 解析错误:语法错误,意想不到的元月底在 C : \ wamp \ WWW的\ - - Parse error: syntax error, unexpected $end wordpress 解析错误:语法错误,意想不到的元月底在WordPress - - syntax error in php 语法错误在PHP - - "$end" php “元,年底”的PHP - - php unexpected $end PHP的意想不到的元月底 - - unexpected $end in 意想不到的元月底在 - - PHP Parse error: syntax error, unexpected $end i PHP的解析错误:语法错误,意想不到的美元为此,我 - - Parse error: syntax error, unexpected $end in / 解析错误:语法错误,意想不到的元月底在/ - - Parse error: syntax error, unexpected $end 解析错误:语法错误,意想不到的元月底 - -