November 6, 2006

Error Reporting

For those you striving to become great PHP developers, make sure you code with error reporting set to report on “strict” mode. This particular error reporting type gives suggestions on your code for commonly made mistakes due to sloppiness. The ideal configuration setting for error reporting is:

E_STRICT | E_ALL

Or in PHP, you would start the page with:

error_reporting(E_STRICT | E_ALL);

Filed under: PHP, Programming — Michi @ 1:29 am

Share this

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Reddit
  • StumbleUpon
  • del.icio.us
  • description
  • Technorati
  • Slashdot
  • co.mments
  • NewsVine

Related

Today's crazy error of the day is: Fatal error: Call to undefined function preg_match() ... Wahoo! A built in function being undefined! So how's this possible? It seems that if you reinstall PHP without compiling in PCRE (Perl Compatible...
Hah. It seems the crazy errors are plaguing me today. The latest one: Fatal error: Call to undefined function mysql_connect() ... Sweet... We moved to a new data center, and this error seems to be related to using PHP...

No Comments »

TrackBack URI | Blog RSS | Comment RSS

No comments yet.

What do you think?