i want to print directly to a printer using PHP, but i have a problem..
It showed up in the printer's queue, but it didn't print at all.. the status change from print to delete in a split second
Here's the code i'm using :
if($ph = printer_open('EPSON TM-U210B Partial cut')){
printer_set_option($ph, PRINTER_MODE, "raw");
printer_write($ph, 'testing');
printer_close($ph);
}
thanks