if (($asb & 0x00002000) == 0x00002000)
{
$strmsg .= " Unrecoverable error generated \n";
}
if (($asb & 0x00004000) == 0x00004000)
{
$strmsg .= " Auto recovery error generated \n";
}
if (($asb & 0x00020000) == 0x00020000)
{
$strmsg .= " No paper in the roll paper near end detector \n";
}
if (($asb & 0x00080000) == 0x00080000)
{
$strmsg .= " No paper in the roll paper end detector \n";
}
if (($asb & 0x80000000) == 0x80000000)
{
$strmsg .= " Stop the spooler \n";
}
$result = fprintf($fhandle, "Printer name = %s : Status ASB value is
%s \n", $printerstatus['devicename'], $asb);
$result = fprintf($fhandle, "%s\n", $strmsg);
if ($result) {
# OK
} else {
# N.G
}
}
fclose($fhandle);
?>