Posted By

pickyj on 01/31/11


php error function

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


error function

 / Published in: PHP

  1. // An error function by BlackHatDBL (
  2. function error($msg) {
  3. global $debug;
  4. if ($debug == false) echo "ERROR!!! (For more info, try setting debug mode to true)\n";
  5. else trigger_error($msg,E_USER_ERROR);
  6. }

Report this snippet  

You need to login to post a comment.