View Full Version : How to launch the scanning process?

01-31-2010, 07:24 PM
Hi all,

I am developping a Web applicaytion with php/mysql and javascript.The OS on the server is Windows 2003,and all the clients have Windows XP on their machine,and I have the following requirement:
On the client(user) of the Web application,there is a scanner which
is connected to the client machine and when the user puts a document (such as a paper containing text and images) on the surface of the scanner, he can click on a button on a form of the Web application and this click must trigger the scanning process and the file resulting of the scanning must be placed in a folder of the client machine (let's say this folder is D:\Images).
I don't know how I can implement this.
Please , how can I solve this problem?
Thanks you in advance for your answers.

01-31-2010, 11:54 PM
A normal web server and browser can't do this. Can you imagine the chaos that would ensue if web developers could access client machine's devices? You'd have websites causing all sorts of mischief!

You should be able to work something out though. For example, you can have a button on your webpage that prompts the user to download a file. This file can be used as a trigger file for a script you've previously installed on the client's machine. You'll also need to create a CRON-type listener (I think Windows has a cron-like application, or you can google "cron for windows" and find something you can use). This listener can detect when the file your user downloads comes into existance and kick off the scanner at that moment. Your script will also need to delete the file that was downloaded so the process can be repeated.