Writing
Tuesday 25 March 2003
Do as Cal says
Cal has a great article about writing robust PHP. Specifically, making it less vulnerable to malicious or dumb users, less erratic on different PHP set-ups, and generally much betterer. PHP is so forgiving that coders tend to get extremely sloppy. I know I do; becoming re-acquainted with Perl’s rigour after months of PHP was a shock to my system recently. Perhaps error_reporting(E_ALL);
should be the first thing PHP coders type, the equivalent of Perl’s use strict;
?
Commenting is disabled on posts once they’re 30 days old.