note 4394 deleted from function.ftp-put by didou

From: Date: Sun, 16 Jan 2005 05:48:18 +0000
Subject: note 4394 deleted from function.ftp-put by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83393@lists.php.net to get a copy of this message
Note Submitter: Paul Southworth ---- My stupid error: if you put the mode in quotes it will silently default to ASCII mode. That is to say: <pre> ftp_put( $ftp, $a, $b, "FTP_BINARY"); </pre> [ED: This behaviour is due to the fact PHP thinks FTP_BINARY is a string and converts it to an integer which is not the same as FTP_BINARY which is just a symbolic constant]

« previous php.notes (#83393) next »