Why not do... $filetype = FTP_ASCII; $upload = ftp_fput($conid, $dfile, $sfile, $filetype);
On Mon, 30 Sep 2002, John Kelly wrote: > Can I pass the ftp transfer mode in a string like ... > > $filetype = "FTP_ASCII"; > $upload = ftp_fput($conid, $dfile, $sfile, $filetype); > > I ask as when I do I get the following error message ... > > Warning: ftp_fput() expects parameter 4 to be long, string given > > If I replace $filetype with the text FTP_ASCII or FTP_BINARY it works fine. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php