Re: FTPing in ascii (and binary)

From: Date: Mon, 24 Jul 2000 19:45:16 +0000
Subject: Re: FTPing in ascii (and binary)
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1282@lists.php.net to get a copy of this message
I'm actually having the oposite problem, all my binary transfers are uploaded as ascii... $mode = "FTP_BINARY"; ftp_put($ftpc,$file,$filename,$mode); trying to upload all contents of $tndirp directory (I've excluded . and .. already) anyone got any idea on what might be wrong? regards, Morten Johansen ""Brian Rak"" <brian@capturelabs.com> wrote in message news:8ko09s$iiv$1@toye.php.net... > Hello! > > I'm trying to use PHP to ftp up and down files. The only problem is that I > always get them as binary! Here's my code: > > dl("php_ftp.dll") or die("Couldn't load the module."); > $ftp = ftp_connect($mysite) or die("Couldn't connect"); > ftp_login($ftp, $login, $pass); > ftp_get($ftp, "C:\Brian\caltest.html", "caltest.html", FTP_ASCII); > > > I get the file alright, but it's always a binary file! I've tried using a > zerio instead of the FTP_ASCII var. That didn't work. When I echo(FTP_ASCII) > I do indeed get a value (0), so that's ok. Can anyone help? > > Thanks, > Brian Rak > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#1282) next »