Home arrow PHP arrow Making Sense Of PHP Errors
PHP

Making Sense Of PHP Errors


PHP's interpreter has been known to split confusing error messages. In this article we will learn what the most common ones mean and also how to combat them.

Author Info:
By: Elan Bechor
Rating: 4 stars4 stars4 stars4 stars4 stars / 20
September 26, 2002
TABLE OF CONTENTS:
  1. · Making Sense Of PHP Errors
  2. · The Way of The Interpreter
  3. · Other Common Errors
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Making Sense Of PHP Errors
(Page 1 of 4 )

All of us -- no matter how careful we are when programming -- make errors and confuse the PHP interpreter. But when a developer can't even decipher what the interpreter is reporting to him or her, it becomes useless, and often frustrating.

PHP does its best to report the first problem it encounters when interpreting your PHP script. The only problem with this is that it won't recognize your mistake until something unexpected happens (more on this later in the article). Because of this, the interpreter reports mistakes on lines that have seemingly perfect syntax, or lines that may not even exist!

Learning more about what errors mean and imply can save you hours trying to figure out what your mistake is, and in this article I will attempt to shed some light on several different types of PHP errors and how to make sense of them during your development time.

In this article I will assume that you're using any version of PHP, as the errors described in this article are not specific to any particular version. I will also assume that you are a beginning/intermediate programmer, having programmed for anywhere from 6 months to 2 years.
blog comments powered by Disqus
PHP ARTICLES

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials