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
how to scan a photo from PHP
Moderator: General Moderators
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..
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..