Posted By

pickyj on 01/31/11


Tagged

php error function


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

virendrakryadav


error function


 / Published in: PHP
 

  1. // An error function by BlackHatDBL (www.netforme.net)
  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.