Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Thanked 0 Times in 0 Posts

    How to launch the scanning process?

    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.

  2. #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts