我想要實現的是調用打印機打印文件或東西,當它生成。打印機將在同一網絡上。php_printer.dll或其他方式打印到網絡打印機
我做了一些研究,發現php_printer.dll
作爲解決方案。 我目前在我的服務器上運行PHP Version 5.4.25
。我試圖找到所需的文件,但鏈接都不工作。我從非官方網站上發現一個php_printer.dll
,當我試圖安裝它,我得到
PHP Warning: PHP Startup: printer: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20100525\nThese options need to match\n in Unknown on line 0
因此,無論某人是否有文件或一個解決這個問題(我猜的文件已經過時,這就是爲什麼它與其他擴展名衝突)。
我也接受其他替代方案,可以直接打印到打印機,而無需用戶執行某些操作。