0

Hi..

I am trying to download a file using FTP Server .
fI used the ollowing script for file downloading.
FTP connection is success.
But while calling ftp_get() Getting an error like

Warning: ftp_get() [function.ftp-get]: File not found in C:\xampp\htdocs\test\ftp_check2.php on line 4

<?php
$conn = ftp_connect("192.168.1.20") or die("Could not connect");
ftp_login($conn,"user1","user1");
echo ftp_get($conn,"local/p.txt","server/p.txt",FTP_ASCII);    
ftp_close($conn);
?> 

Can Anyone Can Help me please.

Edited by divyakrishnan

2
Contributors
1
Reply
15
Views
4 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.