From This link(Printing to POS printer from PHP) i started I have use php sample code. my question is my printer is set to default then why i have to connect to printer. anyway i am getting error on connecting printer. as my printer name is in fig1 and to access printer i have to type \Sah-it\ARP-808K in run as shown in fig2. i have tried:
1.
$connector = new FilePrintConnector("\\Sah-it\ARP-808K");
$printer = new Printer($connector);
2.
$profile = CapabilityProfile::load("simple");
$connector = new WindowsPrintConnector("smb://Sah-it/ARP-808Kr");
$printer = new Printer($connector, $profile);
3.
$connector = new NetworkPrintConnector("\\Sah-it\ARP-808K");
$printer = new Printer($connector);
all gives me connection error. Kindly help me to connect printer. Thanks
Fig1:
Fig2: