php#u printer.dll可以';无法连接到网络打印机

php#u printer.dll可以';无法连接到网络打印机,php,dll,printing,Php,Dll,Printing,我的服务器上安装了php_打印机。 XAMPP5.5.19和PHP5.5.19 我正在使用以下代码: <?php $printer = ("\\\\192.168.80.117\\Canon iP2700 series"); if($ph = printer_open($printer)) { echo "connect"; printer_close($ph); } else "Couldn't connect..."; ?&g

我的服务器上安装了php_打印机。 XAMPP5.5.19和PHP5.5.19

我正在使用以下代码:

<?php
$printer = ("\\\\192.168.80.117\\Canon iP2700 series");
if($ph = printer_open($printer)) 
    { 
        echo "connect";
       printer_close($ph);
    } 
    else "Couldn't connect...";
?>

我发现了问题

由于windows身份验证,Apache无权连接到网络打印机

services.msc
中,搜索Apache并右键单击它

打开“登录”选项卡,然后填写凭证