Hi,
I can print via thermal printer by using php_printer.dll.
But I failed on same type local network printer.
Operating Systems are XP pro, and php 5.0.5 PECL.
So I can print from notepad.exe via network printer. But isn't posssible with php.
Code:
$printer = "\\\\192.168.1.200\\WTP100Pa";
if(($conn_printer = printer_open($printer)) === NULL)
die("Could not connect to $printer\r\n");
var_dump($conn_printer);
printer_write($conn_printer, "Text to print");
printer_close($conn_printer);
What must I do? Please help.
I can print via thermal printer by using php_printer.dll.
But I failed on same type local network printer.
Operating Systems are XP pro, and php 5.0.5 PECL.
So I can print from notepad.exe via network printer. But isn't posssible with php.
Code:
$printer = "\\\\192.168.1.200\\WTP100Pa";
if(($conn_printer = printer_open($printer)) === NULL)
die("Could not connect to $printer\r\n");
var_dump($conn_printer);
printer_write($conn_printer, "Text to print");
printer_close($conn_printer);
What must I do? Please help.