dongmubi4444 2013-01-12 23:19
浏览 103
已采纳

PHP警告:DOMDocument :: loadHTML():htmlParseEntityRef:expecting';' 在实体

the problem is this: if I run the script from the console

C:\Users\Dima>php C:\wamp\www\shop\index.php "test" 2

then there is a bug:

PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 802 in C:\wamp\wwwozetka\app.php on line 40 

index.php

if(isset($argv[1]) && isset($argv[1])){
    return new App((string)$argv[1], (int)$argv[2]);
}

and if just run in a browser index.php

$app = new App('test', 2);

so the application works fine, no errors please help launch the application from the console, and I'm sorry for my english

  • 写回答

1条回答 默认 最新

  • doutan8775 2013-01-12 23:42
    关注

    You probably have an HTML file being referenced by "test" that is being used by new App(), however that HTML file contains errors. Most likely (almost certain) cause is something like <a href="sompage.php?foo=bar&cat=fish">Link</a>. The & in the HREF introduces a character entity, but there is no ; to go with it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法