Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

PHP Debugging Techniques

Debugging a PHP script—debugging it efficiently, at least—boils down to understanding the normal causes of errors. Table 9.1 lists the likely reasons for the most common PHP errors.

Table 9.1. These are some of the most common errors you’ll see in PHP, along with their most probable causes.
Common PHP Errors
ERRORLIKELY CAUSE
Parse errorMissing semicolon, unbalanced curly braces, parentheses, or quotation marks, or use of an unescaped quotation mark in a string.
Empty variable valueForgot the initial $, misspelled or miscapitalized the variable name, inappropriate variable scope, or the register_globals setting is turned off.
Undefined variableReference made to a variable before it is given a value.
Call to undefined function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book