V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
alect
V2EX  ›  PHP

呃,不懂 php,求帮忙看个文件错误。

  •  
  •   alect · Oct 13, 2015 · 3071 views
    This topic created in 3851 days ago, the information mentioned may be changed or developed.
    运行环境 php5.4 最新版,之前用的 modphp ,今天更换成 fastcgi
    以前非常喜欢一个探针程序,谁知切到 fastcgi 模式后不能使用,提示 PHP Parse error: syntax error, unexpected end of file in p.php on line 934
    文件地址: http://www.hexieshe.com/test/p.zip
    12 replies    2015-10-13 21:45:57 +08:00
    xjx0524
        1
    xjx0524  
       Oct 13, 2015
    把第 934 行的结束符"?>"去掉
    alect
        2
    alect  
    OP
       Oct 13, 2015
    @xjx0524 试了,不行。。 o(︶︿︶)o
    zakokun
        3
    zakokun  
       Oct 13, 2015
    我是正常的

    OSX10.10/php5.6/Nginx1.8/
    alect
        4
    alect  
    OP
       Oct 13, 2015
    @zakokun 所以我说比较诡异,我是 Apache/2.4.16 PHP 5.4.45 FastCGI
    02158c
        5
    02158c  
       Oct 13, 2015   ❤️ 1
    762,776,789,805
    改成<?php }?>试试
    alect
        7
    alect  
    OP
       Oct 13, 2015
    @02158c 可以了,非常感谢!

    @Scholer @zakokun @xjx0524 也一并感谢。
    zakokun
        8
    zakokun  
       Oct 13, 2015
    @alect 解释下啥原因呗.
    alect
        9
    alect  
    OP
       Oct 13, 2015
    @zakokun 762,776,789,805 这四行的代码改成<?php }?>就正常了。。具体我真不懂。。
    Dowding
        10
    Dowding  
       Oct 13, 2015
    没开 short_open_tag 吧
    Gonster
        11
    Gonster  
       Oct 13, 2015
    噗 这种错真坑爹😂
    superkey
        12
    superkey  
       Oct 13, 2015
    @takashiki 嗯。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5179 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:13 · PVG 16:13 · LAX 01:13 · JFK 04:13
    ♥ Do have faith in what you're doing.