As a few of us said in the CB, you're likely suffering from the ftp-data port being blocked (incoming to your web server), combined with the FTP server not implementing PASV. If that's true nothing you change in your code will make it work.
Even if your desktop PC receives ftp-data connections OK, that's no reason to believe that your network administrator has allowed the same for the web server.
Either have your network administrator sort it out, or use another protocol. (eg: scp, webdav, rsync, etc)
-David | [reply] |
As erroneouBollock noted, you need to bring this up with your administrator, I wasn't aware this had been brought up in the CB. If ftp'ing from your script and the command line don't work, I don't think using Filezilla would make a difference. Try using 'scp' to get the file their instead if ftp isn't working for you:
$ scp -C localfile username@remotemachine:/remote/file/location/
---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
| [reply] [d/l] |