English 中文(简体)
PHP 分析错误: 意外美元端( Line 410)
原标题:PHP Parse Error: Unexpected $end (Line 410)
  • 时间:2012-05-26 19:49:51
  •  标签:
  • php

我已看到关于这个议题的若干问题,但我认为这个问题不同。

我知道的/ Gooogled : 通常是在文件结尾处, 也就是在本地主机上给出的错误行 。 我正使用 WAMP 服务器开发本地主机。 代码在服务器上执行, 没有错误 。 代码在其它开发者计算机上执行, 错误可能与 JS 有关 。 为他们加载页数 。

我尝试过的解决办法:

  • Fresh code checkout in a new directory from SVN Repository: I had the same error, on the same line (410).

  • Bracket pairings in Notepad++: I went through the code using the bracket highlighting feature, but found no unpaired brackets. #fail

  • 我从服务器上提取了文件, 但机器上仍然有相同的错误 。 # fail

  • 我添加了一个endif (); 电话, 但后来我有一个意外endif () 错误, 代替了未预料的$end 。 # fail

链接到代码:https://www.box.com/s/09f39cb3c4afb0d93558 (主词:https://gist.github.com/2795108 )

我认为我的机器可能有问题,但我不知道它是什么。还有什么其他解决办法?

最佳回答

跳到 260 行并替换 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...