[PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread John Kelly
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

RE: [PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread John W. Holmes
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

RE: [PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread Smith, Benjamin
What if you enclose it in single quotes? -Original Message- From: John Kelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Can I pass the ftp transfer mode in a string? Can I pass the ftp transfer mode in a string like