Solved

PHP / Document Scanner interaction

Posted on 2007-12-04
3
1,460 Views
Last Modified: 2010-04-21
Pardon me for my vagueness, but I'm early in the stages of this project.  I need to create a button in a php application that will start my scanner (maybe using the standard twain drivers?) and scan whatever is on the scanner, placing the results on a file server.  Any help would be greatly appreciated.

LTCJ
0
Comment
Question by:LocoTechCJ
3 Comments
 
LVL 11

Accepted Solution

by:
AlexanderR earned 250 total points
Comment Utility
Now that is something that php was not meant to do.
The best thing i can think of is use of exec functions (for more detials on http://bs.php.net/manual/en/ref.exec.php).

You could then execute the twain files with the necessary parameters.  But this will only work if your scanner driver/application supports command line execution and command line parameters. (IMHO this is why windows is so difficult for programming, because majority of commands are available only through visual mouse interface making some programming tasks close to impossible, while in linux every app is originally designed to run from terminal so you can execute them any way, including form php)
0
 
LVL 42

Assisted Solution

by:Rob Jurd, EE MVE
Rob Jurd, EE MVE earned 250 total points
Comment Utility
If you are able to control the scanner via COM in other languages such as Visual Basic etc then you can also use the COM interface in php.  This would require access to some kind of programming interface that may or may not be supplied by the manufacturer. But if you can't get it working via exec functions (i would recommend this first) then have a look down this track.
0
 
LVL 8

Author Closing Comment

by:LocoTechCJ
Comment Utility
Thanks for the information.  I'll have to see what I can do.

LTCJ
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now