Re: FTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stut wrote:
Raphael Martins wrote:
I will be sending files over my php script... One client asked me for a
project where he allow clients to send some large files (like 50mb)...I
thought that FTP (via PHP)  will allow that.

Today he just give the FTP server user and password to his clients, but he
is worried about the security (of course!). Is there a better way? I was
thinking in split the files in several .RAR volumes... (actually, the client will send his .RAR files instead of a 50mb file), and use remote scripting
to upload each file separatly.

Eww, nasty.

Any Ideas?

Set the upload_max_filesize value for the directory where the upload script lives. That would be the cleanest way to allow this to happen.

However, HTTP was not designed for uploading files of that size so you are better off using an FTP server - this would almost certainly not involve PHP at all. If security is a concern you could generate a temporary FTP user from a PHP script that will get removed after, say, 24 hours. How you would do this will vary depending on the FTP server you are using.

You could also set the ftp account up to be locked into a particular folder.. so if anyone got access to it, they would only see the .rar files and nothing else.

Easily done depending on which ftp server you are using but that's way out of scope for this mailing list.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux