A
A
akdes2020-10-20 00:39:24
PHP
akdes, 2020-10-20 00:39:24

Is it ok to use FTP as storage for persistent access to files over the Web?

Hello.

The client asks to write a wrapper (PHP) for files located under the ftp server.
There was an idea to download files by timer (cron) at night. The client asks "and what, isn't it possible to transfer them directly through ftp_"?

Those. I mean, when someone somewhere clicks on a file on dumbsite.ru, PHP connects to FTP and (either caches or immediately streams) the file to the requester.
I shuddered a little...
As a direct reason for refusal, I heard that FTP has a connection limit of 25... but theoretically it can be solved...

To be honest, I never did such a crutch - I tried to achieve NFS for this storage, and mount on the end server, but the client rested against FTP.

I was not ready for this question / request, that's why I'm asking here ...

Tell me please, what do you think?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2020-10-20
@saboteur_kiev

Why stream if you can immediately give a link to FTP

C
ComodoHacker, 2020-10-20
@ComodoHacker

No, it's not normal. I advise you to find out what the client really wants. And then think about how best to implement it, without becoming attached to the solution he proposed.

N
Nadim Zakirov, 2020-10-20
@zkrvndm

Take a look at Sprutio . It's free, beautiful, convenient. Able to work with external FTP.

I
Ivan Shumov, 2020-10-20
@inoise

What prevents ftp to http proxy through Nginx? Through a mount, for example: https://stackoverflow.com/questions/55338127/serve...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question