<?php
$fh = fopen($file_name.".pdf", "rb");
$content = fread($fh, filesize($file_name.".pdf"));
fclose($fh);
**$handle = printer_open("192.168.1.252\\Deskjet-D2600-series");**
printer_set_option($handle,PRINTER_MODE,"raw");
printer_write($handle,$content);
printer_close($handle);
?>
我无法连接到 IP 打印机。请给我解决问题的方法。