DustDevil1980
Programmer
I have created a report in php that I want to automatically print every day.
<php?
$handle = printer_open("SAVIN4045ePCL6");
printer_set_option($handle, PRINTER_MODE, "raw");
printer_write($handle,"test.php");
printer_close($handle);
?>
The above code just gives me one line with ‘test.php’ printed on it. I want to send the output of test.php to the printer. Am I on the right track or is there a better way to do this?
I have spent days searching the web trying to figure this out and have come up dry. I have to imagine that this is a fairly common task, but I am unable to find any information on it.
<php?
$handle = printer_open("SAVIN4045ePCL6");
printer_set_option($handle, PRINTER_MODE, "raw");
printer_write($handle,"test.php");
printer_close($handle);
?>
The above code just gives me one line with ‘test.php’ printed on it. I want to send the output of test.php to the printer. Am I on the right track or is there a better way to do this?
I have spent days searching the web trying to figure this out and have come up dry. I have to imagine that this is a fairly common task, but I am unable to find any information on it.