note 111610 added to function.ftp-put

From: Date: Fri, 08 Mar 2013 01:27:41 +0000
Subject: note 111610 added to function.ftp-put
Groups: php.notes 
Request: Send a blank email to php-notes+get-193988@lists.php.net to get a copy of this message
I kept having trouble with the ftp_put command and it took ages to realise it was because of the MODE. I had the MODE in a variable and it didn't work that way, I had to put it as either FTP_ASCII or FTP_BINARY at the end of the ftp_put command. EG: DIDN'T WORK: ============== $FTP_MODE = "FTP_BINARY"; ftp_put($conn_id, '/incomming/myfile', $file, $FTP_MODE); DID WORK: ============== ftp_put($conn_id, '/incomming/myfile', $file, FTP_BINARY); ---- Server IP: 69.147.83.199 Probable Submitter: 110.175.1.186 ---- Manual Page -- http://php.net/manual/en/function.ftp-put.php Edit -- https://master.php.net/note/edit/111610 Del: integrated -- https://master.php.net/note/delete/111610/integrated Del: useless -- https://master.php.net/note/delete/111610/useless Del: bad code -- https://master.php.net/note/delete/111610/bad+code Del: spam -- https://master.php.net/note/delete/111610/spam Del: non-english -- https://master.php.net/note/delete/111610/non-english Del: in docs -- https://master.php.net/note/delete/111610/in+docs Del: other reasons-- https://master.php.net/note/delete/111610 Reject -- https://master.php.net/note/reject/111610 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193988) next »