R
R
Roman Olegovich2014-10-29 14:28:02
PHP
Roman Olegovich, 2014-10-29 14:28:02

How to implement file transfer from scanner in PHP via FTP?

Good day.
We have a scanner in our office, and the task was to upload scanned files to the site. The scanner can send files via FTP.
As a result, it should be like this:
- The "Scan" button is pressed on the site, and a pop-up window with a list of files opens (so far empty)
- As the scan progresses, previews appear in the window.
- The last step, respectively, is to transfer the downloaded files to the desired directory from the temporary one and write them to the database.
I think about the implementation of the FTP server in PHP, I'm looking for a normal ready-made solution for this.
Well, or maybe it can be different, what do you think?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2014-10-29
@FanatPHP

"implementing an FTP server in PHP" is nonsense. Something like "Looking for the implementation of road markings at traffic lights."
An FTP server does not need to be implemented. Not on RNR, not on anything else. It already exists, as part of any web server.
That is, the problem of sending to the server from the scanner is not worth it. You just need to set up an account on the server and enter data into the scanner.
Any windows with previews are nonsense, the interface. You can do it this way, you can do it the other way. This is not a fundamental issue. The user can at least update the window with his hands.
The hardest part of this imaginary task is the "Scan" button. since there are no visible communication channels site -> scanner in the description. If you change the task to "show scanned files", then everything is simplified:
- a person goes to the scanner and scans what he needs.
- after that he goes to the site, and clicks "show files"
- after that, any ready-made photo gallery script shows him his files in any form.

X
xmoonlight, 2014-10-29
@xmoonlight

FTP -> WebDAV,
AJAX (timeout update) or Socket.IO (realtime update)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question