zoukankan      html  css  js  c++  java
  • php常见报错

    Php常见错误提示

    一、Fatal error: Call to undefined function……
    函数不存在,可能的原因
    系统不存在这个函数且你也没自定义

    二、syntax error, unexpected T_STRING, expecting……
    严重语法错误,例如syntax error, unexpected T_STRING, expecting ',' or ';' in F:phpnowhtdocsindex.php on line 4

    三、Parse error: syntax error, unexpected T_VARIABLE in XXX.php on line XXX
    这条语句是PHP常见的报错,一般是在XXX行的上一行,或者是XXX行,缺少分号。或者在双引号中使用双引号,且没有转义等等。

    四、Parse error: syntax error, unexpected 'X' in XXX.php on line XXX

    这条语句依然是PHP常见的报错,报错原因是在XXX.php的XXX行,出现了PHP无法识别的字符。常常是因为function,if等需要‘{'、‘}'的地方没有闭合,或者在编程的时候,不小心在‘;'的后面误打了几个字符

    五、syntax error, unexpected $end
    逻辑忘了闭合 这个报错还有个特征,他会提示你最后一行代码报错,譬如你一共30行,他就告诉你 on line 30,这时候你别检查第三十行,你要把30行挨个,检查一遍,看看哪个标签没闭合。

    六、Notice:Undefined varialbe:……
    这是一个比较常见的错误,解决方法:error_reporting调整错误级别,

  • 相关阅读:
    Power of Cryptography
    Radar Installation
    Emag eht htiw Em Pleh
    Help Me with the Game
    89. Gray Code
    87. Scramble String
    86. Partition List
    85. Maximal Rectangle
    84. Largest Rectangle in Histogram
    82. Remove Duplicates from Sorted List II
  • 原文地址:https://www.cnblogs.com/dej-11/p/7725671.html
Copyright © 2011-2022 走看看