drwo32555 2015-03-16 17:11
浏览 106
已采纳

新安装xampp后出现PHP错误

I was recently switched computers at work, and am trying to get all my projects up and running again. I am working on testing some php/html/javascript pages for a website using a local xampp server. I had everything working properly on the only computer, but when I try to load the pages now I get the following error:

Uncaught SyntaxError: Unexpected token <

I have tried a php-only test page, so I know the sever is capable of parsing php.

I also know it is not the short tag issue, as all of the php code is wrapped in

<?php...?>

Are there any other configuration settings that would be causing this issue?

  • 写回答

2条回答 默认 最新

  • duanpaotian2348 2015-03-16 17:30
    关注

    The error message doesn't look like a PHP error. Check this discussion maybe you can find the solution there.

    It seems the error is reported by Google Chrome when it expects to parse a .js file and it finds HTML (or PHP?) instead.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?