Solved

PHP / Document Scanner interaction

Posted on 2007-12-04
3
1,482 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
AlexanderR earned 250 total points
ID: 20409188
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 43

Assisted Solution

by:Rob
Rob earned 250 total points
ID: 20414868
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
ID: 31412724
Thanks for the information.  I'll have to see what I can do.

LTCJ
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is this? I've never seen this... 2 29
Pull Variable from URL  Use php template 1 32
Php - How to get the value of json file using PHP? 29 58
php subtract from date 2 28
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

749 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