PHP
  Home arrow PHP arrow Making Sense Of PHP Errors
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Making Sense Of PHP Errors
By: Elan Bechor
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2002-09-26

    Table of Contents:
  • Making Sense Of PHP Errors
  • The Way of The Interpreter
  • Other Common Errors
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Making Sense Of PHP Errors


    (Page 1 of 4 )

    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.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.

    More PHP Articles
    More By Elan Bechor


     

    PHP ARTICLES

    - 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
    - PHP Frontend to ImageMagick
    - Using PEAR's mimeDecode Module
    - Incoming Mail and PHP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek