note 111610 deleted from function.ftp-put by salathe

From: Date: Fri, 08 Mar 2013 09:03:25 +0000
Subject: note 111610 deleted from function.ftp-put by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193991@lists.php.net to get a copy of this message
Note Submitter: nadia at digigifts dot com dot au ---- 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);

« previous php.notes (#193991) next »