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

2002-10-02 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Thanks guys, I was unaware having quotes around it would make a difference. > Works fine once I removed the quotes. > > "John Kelly" <> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can I pass the ftp transfer mode

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

2002-09-30 Thread John Kelly
Thanks guys, I was unaware having quotes around it would make a difference. Works fine once I removed the quotes. "John Kelly" <> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can I pass the ftp transfer mode in a string like ... > > $filetype = "FTP_ASCII"; > $upload = ftp_fput

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

2002-09-30 Thread Philip Hallstrom
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 d