Posted By

pickyj on 02/01/11


Tagged

php info error function notify


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

felipefermin


notification php function


 / Published in: PHP
 

  1. // Notification function
  2. function outp($msg,$type) {
  3. if ($type=="i")
  4. $msg="[i] ".$msg;
  5. elseif ($type=="!")
  6. $msg="[!] ".$msg;
  7. elseif ($type=="x")
  8. $msg="[x] ".$msg;
  9. elseif ($type=="e") {
  10. $msg="[x] ".$msg;
  11. $exit=1
  12. }
  13. echo $msg."\n";
  14. if ($exit==1)
  15. exit(1);
  16. }

Report this snippet  

You need to login to post a comment.