Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1493
  • Last Modified:

PHP / Document Scanner interaction

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
LocoTechCJ
Asked:
LocoTechCJ
2 Solutions
 
AlexanderRCommented:
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
 
RobOwner (Aidellio)Commented:
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
 
LocoTechCJAuthor Commented:
Thanks for the information.  I'll have to see what I can do.

LTCJ
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now