Hi,
I get this error:
PHP Warning: couldn't allocate the printjob [1804] in
L:\php\scripts\script.php on line 37
Who can help me? BTW where can I find the errorcodes and their meaning?
This is my code which is a php-cli script:
<?php
$fp_log = fopen("logbestand.log", "w");
....
.... <cut>
....
if($gevonden === "JA")
{
unlink($bestand);
//logging
fwrite($fp_log, "blablabla");
}
elseif(file_exists($bestand))
{
$handle = printer_open("\\\\10.1.1.2\Xerox1632");
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_start_doc($handle, "document1");
$text = "blablabla";
printer_write($handle, $text);
printer_end_doc($handle);
printer_close($handle);
//logging
fwrite($fp_log, "blablabla");
}
else
{
//logging
fwrite($fp_log, "blablabla");
}
fclose($fp_log);
?>
line 37: printer_write($handle, $text);

Likes:

Quote
svRa.271$aa.28692@newsfep2-gui.server.ntli.net...