Return to Snippet

Revision: 40391
at February 1, 2011 07:32 by pickyj


Initial Code
// Notification function
function outp($msg,$type) {
	if ($type=="i")
		$msg="[i] ".$msg;
	elseif ($type=="!")
		$msg="[!] ".$msg;
	elseif ($type=="x")
		$msg="[x] ".$msg;
	elseif ($type=="e") {
		$msg="[x] ".$msg;
		$exit=1
	}
	echo $msg."\n";
	if ($exit==1)
		exit(1);
}

Initial URL

                                

Initial Description

                                

Initial Title
notification php function

Initial Tags
php, error, function

Initial Language
PHP