PHP escpos打印

Can anyone please help?

Hi , Iam using "EPSON TM-T82II Receipt" to print bills.Iam using the php code

 <?php
   require_once(dirname(__FILE__) . "/Escpos.php");
 try {

 $connector = null;
  $connector = new WindowsPrintConnector("EPSON TM-T82II Receipt");
  /* Print a "Hello world" receipt" */
$printer = new Escpos($connector);
$printer -> text("Hello World!
");
$printer -> cut();

/* Close printer */
$printer -> close();  
} catch(Exception $e) {  
echo "Couldn't print to this printer: " . $e -> getMessage() . "
";
}   
Iam getting this error "Couldn't print to this printer: Printer

'EPSON TM-T82II Receipt' is not valid. Use local port (LPT1, COM1, etc) or smb://computer/printer notation. "

You should do exactly as the error says - instead of WindowsPrintConnector("EPSON TM-T82II Receipt"), you need to use WindowsPrintConnector("LPT1") or WindowsPrintConnector("smb://XXX"), where XXX is your printer's network path.