Topic awaiting preservation: PHP copy 'directory' from FTP to FTP (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
posted 08-14-2003 08:02
I've seen many scripts to upload individual files to a ftp via a web interface, thats not what i need... |
Paranoid (IV) Inmate From: under your rug, |
posted 08-22-2003 05:51
Peakabo! |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-22-2003 09:16
well, I know a friend of mine is doing this... it's not to complicated. most of his code is actually processing what files the user selected, not doing the right ftp_commands. and the manual is pretty straightforward on it as well. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-22-2003 16:04
Synthetic: Can you not do it in something like SmartFTP? |
Paranoid (IV) Inmate From: under your rug, |
posted 08-24-2003 06:29
Yes i've been doing that currently, basicly I've got some debugging packages that have to be uploaded over and over to many different servers that we troubleshoot. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-24-2003 09:05
On the following web site you'll find a function that recursively uploads files via FTP and that's basically everything that you need :-) |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-24-2003 15:02
and always remember: there's only one appropriate way to transfer files: Binary ;-) |
Maniac (V) Mad Scientist From: :morF |
posted 08-24-2003 16:53
As winessed by TP's FTP server, which if you aren't running in binary says 'ASCII tastes bad, dude' |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-26-2003 08:28
Although ASCII transfers consume a lot of CPU time and even more bandwidth than transferring files in binary mode, ASCII transfers are only way to properly upload text files which are left in Windows format (CR/LF line endings), or you'll end up with files that have famous "^M" character at the end of each line, which they will seriously broke PERL scripts, for example. Of course, the proper way would be to convert files to Unix format (LF line endings) before uploading, but not many people do that... |
Paranoid (IV) Inmate From: under your rug, |
posted 08-28-2003 15:07
Got busy with stuff and forgot to check back, anyway appreciate the input |