我想通过这个代码调用未定义功能printer_open()
$handle = printer_open("\\\\xxx.xxx.xxx.xxx\\Canon MF4320-4350");
if($handle)
echo "connected";
else
echo "not connected";
连接到我的打印机是另一台机器上,并得到错误
Fatal error: Call to undefined function printer_open() in C:\wamp\www\print\index.php on line 3
我已经安装了php_printer。 DLL,但它不显示它在phpinfo()
下。使用PHP版本5.3.0
如何连接到打印机并使我的printer_open()
方法工作?
你在php.ini中启用了扩展吗? – 2013-03-11 12:04:51
你重新启动了你的网络服务器吗? – j0k 2013-03-11 12:05:11
你重新启动了Apache吗?你有没有检查日志是否有错误? – hank 2013-03-11 12:05:17