We are usingCommon PHP errors:
No page rendered by the Web browser when much more is expected
A pop-up dialog stating that the "Document Contains No Data"
A partial page when more is expected
Most common PHP errors are caused not by script logic, but by bugs in HTML or HTML generated by scripts. For example, the page cannot be refreshed without a close Tag such as </table>, </form>, and </frame>. To solve this problem, check the source code of HTML.
For pages that are complex and cannot find the cause, you can use the W3C page verification program http://validator.w3.org/for analysis.
If no variable is defined, or the definition of the variable is incorrect, the program will become odd. For example, the following endless loop:
- <?php
- for($counter=0; $counter<10; $Counter++)
- myFunction();
- ?>
The variable $ Counter is increasing, while the variable $ counter is always less than 10. Common Errors of this type of PHP can be found by setting a high error report level:
- <?php
- error_reporting(E_ALL);
-
- for($counter=0; $counter<10; $Counter++)
- myFunction();
- ?>