$dfile=stripslashes($pomfile[$i]); //destination file
$sfile=stripslashes($file[$i]); //source file
$host="ftp.mysite.com";
$port=60000;
$stream=ftp_connect($host,$port);
if (!stream) {
print "UNable to connect";
}
print "Stream:".$stream;
if (ftp_login($stream,'username','password')) {
print "Stream: ".$stream."<br>";
if (file_exists("E:\myfile.gif")) {
print "file exists";
} else {
print "file does not exists";
}
if (ftp_put($stream,$dfile,$sfile,FTP_BINARY)){
print "UPLOADED !!!";
} else {
print "file not Uploadeld: ".$file[$i];
}
} else {
print "DOES NOT CONNECT!!!";
}
this is the code I use for uploading files to my ftp server.. But it does not work
any help would be appreciated 🙂)
10x
Armando