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

From: Date: Tue, 01 Oct 2002 02:44:00 +0000
Subject: RE: [PHP] Can I pass the ftp transfer mode in a string?
Groups: php.general 
Request: Send a blank email to php-general+get-118295@lists.php.net to get a copy of this message
What if you enclose it in single quotes? -----Original Message----- From: John Kelly [mailto:johnkelly@hotmail.com] Sent: Tuesday, 1 October 2002 12:36 PM To: php-general@lists.php.net Subject: [PHP] Can I pass the ftp transfer mode in a string? 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

« previous php.general (#118295) next »