如何使用IP地址打开打印机连接?

时间:2013-03-15 11:59:25

标签: php printing

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

0 个答案:

没有答案