Talking to a scanner from a PHP script

允我心安 提交于 2019-12-10 14:59:20

问题


I run a small business but I need to be somewhat more organised in terms of those letters and invoices i receive. This is what I want to accomplish:

  1. When I receive a invoice or some other information on paper, I would place it in my scanners tray and leave it there.

  2. Every 15 minutes my linux box ask my scanner if there is anything to scan and if so starts the scanning process and place the file in a folder.

Could anyone point me in the right direction to how I can talk to my scanner from a PHP-script, like "Are there anything to scan ?" and "Start scanning, place the file here"...


回答1:


There's phpSane, a web frontend to your scanner. Internally it just exec's the scanimage commandline tool though. That's what I would use if I were you. scanimage is only available on Linux though.



来源:https://stackoverflow.com/questions/6643763/talking-to-a-scanner-from-a-php-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!