maanikmca Posted May 31, 2017 Share Posted May 31, 2017 Friends, Suggest me regarding scanning document through php Application, Quote Link to comment Share on other sites More sharing options...
ginerjm Posted May 31, 2017 Share Posted May 31, 2017 Scanning a document through a php application? I assume that you meant to say - 'use a php application to process scanned documents'. Yes? Ok - so now that we understand what you want to do, how about you explain to us what you are having difficulty with understanding? Or - what is it you really want help with? Quote Link to comment Share on other sites More sharing options...
maanikmca Posted June 1, 2017 Author Share Posted June 1, 2017 ginerjm, I mean i need to scan the document using php application, is there any api available to scan the document from scanner through our web application. Quote Link to comment Share on other sites More sharing options...
kicken Posted June 1, 2017 Share Posted June 1, 2017 Not within PHP itself. Probably you'd have to find some kind of external CLI program you could run and use it to do your scan. If your target is windows, you might be able to hack something together with COM and WIA Interfaces Why do you want to do this through PHP? Quote Link to comment Share on other sites More sharing options...
maanikmca Posted June 1, 2017 Author Share Posted June 1, 2017 Kicken, We are doing schooling application, in that I need to scan marksheets to the particular students through our application. Kindly help me regarding this. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted June 1, 2017 Share Posted June 1, 2017 Please define your use of the word 'scan'. When you used it here I saw you running a document of some type thru a sacnning device to produce a digital document. That is how I use the word scan. So my assumption was that you then wanted to use PHP to 'process' this already-scanned document. What is a 'marksheet'? The sheet that a student marks up with their answers? So the student answers the test and you want to take their sheet and scan it back to them using email perhaps? Wouldn't a copier work just as well? Quote Link to comment Share on other sites More sharing options...
maanikmca Posted June 1, 2017 Author Share Posted June 1, 2017 Need to scan the document from scanner device using our application and upload into database, its my objective. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted June 1, 2017 Share Posted June 1, 2017 #1 You want to do as I thought - scan a document and get it to your server. Not sure what you mean by "using our application" though. The 'scan' will not use PHP and as for getting it to the server any kind of upload process would suffice so your application could put up a form with a file input element to grab the scanned document and any other attributes that you want to keep with it. Is that how you see it? #2 You should not be placing scanned documents (or any other type of document) in your database. There is no reason to do this and it just adds to resource usage by having to store and retrieve something that can already exist on its own anyway. Normally one creates a table record to contain attributes about something and if there is a document related to it one includes a field that points to it. In your case your upload form would include a docname field that your php code would then assign to the uploaded file once the upload process is complete. You might have to decide on whether you need multiple folders for your documents or not. If so that would have to be part of your 'upload and store' process but in any case you would need to ensure that your process doesn't create duplicate docnames. (you could handle this by adding a suffix to make it unique and then save THAT name in your database record. Quote Link to comment Share on other sites More sharing options...
maanikmca Posted June 3, 2017 Author Share Posted June 3, 2017 Can we handle HP scanner from php web application?? When pressing scan in php application, it should scan from locally installed HP scanner in my desktop. Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted June 3, 2017 Share Posted June 3, 2017 PHP can do a lot, but your problem description is so vague that it's simply impossible to help you. Your first job is to find out how exactly the PC communicates with the scanner. There's TWAIN, there's SANE for Linux, there are plenty of proprietary tools. Find out which one is available, then we can talk about using it in PHP. Quote Link to comment Share on other sites More sharing options...
maanikmca Posted June 3, 2017 Author Share Posted June 3, 2017 Yeah, I tried with dynamosoft it's works fine, but am looking for some free tool like working Twain( with example ) for Windows. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted June 3, 2017 Share Posted June 3, 2017 So you are probably looking for a PC application that can control the scan operation so that you can place a document on the glass and have it scanned and saved on your PC. ONLY THEN will you be looking at server apps to do the rest of your work, which may or may not utilize PHP. Does that sound like what you want? Because any server-based PHP app will NOT manage your desktop scanner. You may find a PHP app written to run on a PC which might be able (???) to manage a your network-attached scanner. I don't know if that is possible but even if it is, you still have to get the scanned docs up to your server - along with the individual data belonging to each document. Does THIS sound closer to your goal? You are not being very helpful here as Jacques has already said. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.