Hello everyone,

I have an huge problem here 🙁

I would like to use a scanner from my application written in PHP.
I want to click in a button in the php script, the scanner program will open and scan an image or document, I will put the name of the file and after I want to save in my mysql database the name of the file that I wrote in the scanner software. 🙁

Is there anyway from PHP to start the scanner and save the filename in a PHP variable?

Probably the best choice is to use the COM Objects?
Where I can see the Objects that I can use from PHP ($object = new COM('object')

My server is an win 2003 server...

Thank you in advance

    Before even going down that road....are you talking about a scanner attached to the server or a scanner attached to the user's computer? If it's the latter, just forget about doing that in php...

      Unless you're willing to go knee deep into some C/C++ code, you're probably going to want to find some executable that performs the scan for you, and dumps the result into some kind of image file format that you understand.

      Once you've figured all that out, try calling it from the command line, and reading back the dumped image.

        Write a Reply...