Email script error messages?



With PHP, is it possible to have a script mail error messages if the
script bombs out? I've done this before with ColdFusion and it has
been great for nipping problems in the bud.

Thanks,

Chuck

.