note 4394 modified in ftp_put by jmoore

From: Date: Sun, 17 Dec 2000 17:47:11 +0000
Subject: note 4394 modified in ftp_put by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-8807@lists.php.net to get a copy of this message
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] http://www.php.net/manual/function.ftp-put.php

« previous php.notes (#8807) next »