I am trying to connect to my printer which is on another machine through this code
$handle = printer_open(\"\\\\\\\\xxx.xxx.xxx.xxx\\\\Canon MF4320-4350
I have a similar problem. This is what I have figured out so far.
Make sure that you have a php_printer.dll matching your php compile version in your extension folder ( php/ext/ ). Use this link for downloading the file.
add the following in your php.ini file:
printer.default_printer=PHP_INI_ALL
extension=php_printer.dll
The errors have disappeared but the file is still not printing.