I need to use ftp_get() to download a file. I'm just not quite sure what is incorrect with what I'm doing here...
<?php
$ftp = ftp_connect("ftp.somesite.ext");
ftp_login($ftp, "userid", "password");
ftp_get($ftp, "d:\\temp.txt", "file.txt", FTP_ASCII);
ftp_quit($ftp);
?>
The error I get is:
Warning: error opening d:\temp.txt in ....../ftpdownload.php on line 4 (where "......." is a bunch of directories)
Anyone have experience with ftp_get()? Or perhaps, ftp_fget() is what I'm looking for?
BTW: d: is a partition on my HD, not my CD-ROM