note 10181 rejected and deleted from ftp_put by jmoore
| From: | jmoore@php.net | Date: | Sun, 17 Dec 2000 16:39:48 +0000 |
| Subject: | note 10181 rejected and deleted from ftp_put by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8805@lists.php.net to get a copy of this message | ||
I'm using PHP3 (FTP-dll installed) on a windows machine. While experimenting I tried this :
ftp_put ($toconn, "/www/jeroen/html/index.php", "/index.php", FTP_ASCII);
// file = 800K
Using a regular FTP-client, I can see the file getting created on the server. The script however
takes about 1 minute and then it displays following error :
Warning: ftp_put: Opening ASCII mode data connection for /www/jeroen/html/index.php. in w:get.php on
line 125
When I went back to look on the server, the file was gone...
I tried it a second time and (using the FTP-client) I downloaded the script back to the harddisk. To
my surprise it was complete.
Problem is, the file gets deleted from the server when the error is created...
Any advise?