<?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打印机。请给我解决问题的解决方案。