FTPing in ascii
| From: | Brian Rak | Date: | Fri, 14 Jul 2000 21:22:04 +0000 |
| Subject: | FTPing in ascii | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1099@lists.php.net to get a copy of this message | ||
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