note 123266 added to function.ftp-pasv

From: Date: Fri, 26 Oct 2018 13:59:28 +0000
Subject: note 123266 added to function.ftp-pasv
Groups: php.notes 
Request: Send a blank email to php-notes+get-209524@lists.php.net to get a copy of this message
For some FTP servers, it seems the sequence of passive and other commands matters more than for other FTP servers. Sorry, I don't know what vendor or version specifically. <?php ftp_pasv($handle, true); echo "System type: ".ftp_systype($handle).PHP_EOL; ftp_fput($handle, 'example.txt', $stream, FTP_BINARY); ?> > PHP Warning: ftp_fput(): STOR out of sequence. <?php echo "System type: ".ftp_systype($handle).PHP_EOL; ftp_pasv($handle, true); ftp_fput($handle, 'example.txt', $stream, FTP_BINARY); ?> > no issue ---- Server IP: 208.43.231.9 Probable Submitter: 71.13.171.2 ---- Manual Page -- http://php.net/manual/en/function.ftp-pasv.php Edit -- https://master.php.net/note/edit/123266 Del: integrated -- https://master.php.net/note/delete/123266/integrated Del: useless -- https://master.php.net/note/delete/123266/useless Del: bad code -- https://master.php.net/note/delete/123266/bad+code Del: spam -- https://master.php.net/note/delete/123266/spam Del: non-english -- https://master.php.net/note/delete/123266/non-english Del: in docs -- https://master.php.net/note/delete/123266/in+docs Del: other reasons-- https://master.php.net/note/delete/123266 Reject -- https://master.php.net/note/reject/123266 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209524) next »