escpos-php
escpos-php copied to clipboard
Via SMB protocol it does not print on client PCs
trafficstars
via console XAMPP it works: echo "Hello world" > foo.txt net use "\ARMANDO-PC\pos1" /user:Armando 12345 copy testfile "\ARMANDO-PC\pos1" del testfile
via php code doesn't work:
$connector = new WindowsPrintConnector("smb://Armando:12345@ARMANDO-PC/pos1");
/* Print a "Hello world" receipt" */ $printer = new Printer($connector); $printer -> text("Hello World!\n"); $printer -> cut();
/* Close printer */ $printer -> close();
o.s web server: w10 o.s pc client with printer: w7
Has anyone solved this type of problem? it's urgent