Open ghost opened 5 years ago
Standard printer sharing is the most straightforward way to allow your PHP server (on localhost or the LAN) to see your printer. You can lock down a shared printer with a username/password/ACL and/or Windows firewall if needed.
If you are on localhost only, then the feature request at #474 would avoid printer sharing, provided that you have the necessary extension installed.
I've shortened the title of this issue so that it fits on one line, I hope you don't mind :)
thanks , i dont mind at all.. what kind of necessary extension installed do you mean?
I use a pos-58 printer. In my case I just install the driver of the printer and then I shared. It was on localhost. Hope this helps.
require DIR . '/autoload.php';
use Mike42\Escpos\Printer; use Mike42\Escpos\PrintConnectors\WindowsPrintConnector;
$printer -> cut(); $printer -> close();