![]() Topic awaiting preservation: PHP copy 'directory' from FTP to FTP (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
![]() 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, |
![]() Peakabo! |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() 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 |
![]() Synthetic: Can you not do it in something like SmartFTP? |
Paranoid (IV) Inmate From: under your rug, |
![]() 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 |
![]() 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 |
![]() and always remember: there's only one appropriate way to transfer files: Binary ;-) |
Maniac (V) Mad Scientist From: :morF |
![]() 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 |
![]() 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, |
![]() Got busy with stuff and forgot to check back, anyway appreciate the input |