escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

unable to print From My website on cloud server

Open KrPawan opened this issue 3 years ago • 1 comments

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();

KrPawan avatar Jun 24 '22 11:06 KrPawan

Hello! Did you find a solution for this?

regards

ntraficante avatar Feb 10 '23 20:02 ntraficante