Hey I am trying to print a text using php. This print should occur automatically. Now I am testing in normal HP deskjet printer but in future it prints through thermal printer. Now my code is
<?php
$printer = "\\\\LOCALHOST\\HP Deskjet 1510 series";
$fp = fopen($printer, "w");
$data = "hello";
fwrite($fp,$data);
This code runs fine with no error but no printing occurs.
printing status is like below

please help..