I changed the file name Successfully.
Now i need to Download a server's file on local machine.....
I have attached code of this below....
<?php
echo "<br>--------------------------------Connecting
$ftp_server = "192.168.1.14"; // Server Where the Original File resides
$ftp_user_name = "username";
$ftp_user_pass = "pw";
$conn_id = ftp_connect($ftp_server) or die("Could not Connect To 192.168.1.134");
if($conn_id)
echo "<br>Successfully FTP Connect With 192.168.1.14";
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass) or die("<br>Login Problem : ");
if($login_result)
echo "<br>Successfully FTP Login in 192.168.1.14";
$local_fileget = "h_get.txt"; // In FTP file Folder on Local Machine
$server_fileget = "/test/h_stop.txt"; // File Position in Server - FTP folder
if (ftp_get($conn, $local_fileget, $server_fileget,FTP_ASCII)) // ftp_gets not working
{
echo "<br><br>Successfully GET to $local_fileget To make Changes\n";
}
else
{
echo "<br><br>There was a problem while Getting the File to Local machine\n";
}
// Close the connection
ftp_close($conn_id);
?>