note 10181 added to ftp_put
| From: | jeroen at jeropolis dot com | Date: | Sun, 17 Dec 2000 15:53:58 +0000 |
| Subject: | note 10181 added to ftp_put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8804@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?
http://www.php.net/manual/function.ftp-put.php