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);
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 yet.