how to scan a photo from PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
johnlee
Forum Newbie
Posts: 1
Joined: Mon Sep 06, 2004 10:12 am
Location: America

how to scan a photo from PHP

Post by johnlee »

Dear All,

Please help me. I am doing a university project. My assignment is to scan a photograph from attached scanner by using PHP and save that photo in Postgresql. Kindly guide me how can i access scanner and scan a photograph from PHP.

I am working on Redhat Linux 9

Thanks in advance

Johnlee
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

How do you usually access the scanner?
Do you have any command line tools to do the scans?
Are you using web interface or GTK (or other human interface)?
Which version of PHP?

If you run through a web server, the user it runs as, or it executes PHP as, need access to the device and/or executables that can do scanning, e.g. a cgi-wrap or something like that... then you can use exec/system/`` type stuff to execute in a shell, or use pipes/streams if you ave a PHP version that supports that..
Post Reply