I have a TM-T88IV printer in my network. There are already 2 PCs connected to it and working fine. I added another PC to the network and added the printer on it with the 'generic/text only' driver. I used the following code to print to the printer but it does not print. It just gives me a blank page with no errors.
<?php
require 'escpos-php-development/autoload.php';
use Mike42\Escpos\Printer;
use Mike42\Escpos\PrintConnectors\FilePrintConnector;
$connector = new FilePrintConnector("192.168.1.34",9100);
$printer = new Printer($connector);
try {
$printer -> text("Hello World");
} finally {
$printer -> close();
}
?>
This is the basic file to print which does not work. Can anyone help?