escpos-php
escpos-php copied to clipboard
unable to print From My website on cloud server
The print is working fine through ethernet on my local XAMPP server. But when I pushed my code and try to access the same printer from my website on the cloud server I did not get any result.
require 'ecpos/vendor/autoload.php';
use Mike42\Escpos\Printer;
// use Mike42\Escpos\PrintConnectors\WindowsPrintConnector;
use Mike42\Escpos\PrintConnectors\NetworkPrintConnector;
$connector = new NetworkPrintConnector($printerIp);
$printer = new Printer($connector);
$printer -> setJustification(Printer::JUSTIFY_CENTER);
$printer -> cut();
$printer -> close();
Hello! Did you find a solution for this?
regards