note 90518 added to function.ftp-put

From: Date: Sun, 26 Apr 2009 14:51:01 +0000
Subject: note 90518 added to function.ftp-put
Groups: php.notes 
Request: Send a blank email to php-notes+get-153781@lists.php.net to get a copy of this message
If when using ftp_put you get the one of the following errors: Warning: ftp_put() [function.ftp-put]: Opening ASCII mode data connection Warning: ftp_put() [function.ftp-put]: Opening BINARY mode data connection and it creates the file in the correct location but is a 0kb file and all FTP commands thereafter fail. It is likely that the client is behind a firewall. To rectify this use: <?php ftp_pasv($resource, true); ?> Before executing any put commands. Took me so long to figure this out I actually cheered when I did :D ---- Server IP: 92.48.74.199 Probable Submitter: 84.43.33.165 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-put.php Edit -- https://master.php.net/note/edit/90518 Del: integrated -- https://master.php.net/note/delete/90518/integrated Del: useless -- https://master.php.net/note/delete/90518/useless Del: bad code -- https://master.php.net/note/delete/90518/bad+code Del: spam -- https://master.php.net/note/delete/90518/spam Del: non-english -- https://master.php.net/note/delete/90518/non-english Del: in docs -- https://master.php.net/note/delete/90518/in+docs Del: other reasons-- https://master.php.net/note/delete/90518 Reject -- https://master.php.net/note/reject/90518 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153781) next »