Re: ftp_put and ftp_fput both failing me
| From: | Marek Kilimajer | Date: | Thu, 27 Jan 2005 18:46:17 +0000 |
| Subject: | Re: ftp_put and ftp_fput both failing me | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207522@lists.php.net to get a copy of this message | ||
Wayne Zeller wrote:
Marek Kilimajer wrote:30 seconds? This must be your firewall blocking connections from outside world. Use ftp_pasv() to turn on passive mode.You must use ftp_fput() because you are using open file handle. Check that tmpfile() did not fail. Then make sure you are in the right directory after logging in the ftp server.That's what I get for trying to put together code for my post during attempts to do it several different ways. I ended up posting code that was a hybrid of when I tried it using the file name with ftp_put and when I used a file handle with ftp_fput. The exact same code that I posted, but with ftp_fput instead of ftp_put gives the same results. The script takes about 30 seconds to run, and then reports its failure. I've verified that the temp file is being created with the correct contents.