I’m a relative beginner to php, so bear with me
I’m trying to download a file from the server to my local pc. Here’s my code:
$local_file = ‘c:\cirwin\rcc\test.dat’;
// download server file
if (ftp_get($ftp_conn, $local_file, $filename, FTP_ASCII))
{
echo “Successfully written to $local_file.”;
}
else
{
echo “Error downloading $server_file.”;
}
// close connection
ftp_close($ftp_conn);
I’m getting the message that the file has been successfully written, but I can’t find it on my local machine. Any thoughts?