10-31-2022, 07:23 PM
I have a bizarre problem with FTP. I have a small program that has been working for years. It's purpose is to upload files from our office to our website to be used by a plugin on the site. It no longer works from the office computer that it runs on. It works perfectly from my development computer at home. I can't even figure out how to debug the issue. Here's the code which does report to me each day on success/failure. I've tried inserting messages to let me run it
on the office computer remotly but haven't get a good response. Where can I find a list of commands for the idFTP module?
dbFTP->Passive = true;
dbFTP->Port = 21;
dbFTP->Host = "hostname;
dbFTP->Username = "usernamer";
dbFTP->Password = "password";
String resultstext = "database ftp unknown failure"; // email report text
dbFTP->Connect();
try {
if (dbFTP->Connected()) {
dbFTP->ChangeDir("/public_html/Map");
GetRemoteFilenames();
Delay(1);
CopyDBtoFTPServer(); // copies files from aisla folder to ftp server
GetRemoteFilenames(); // check on results
resultstext = "Backed up: ";
}
}
catch(...) {
resultstext = "database backup failed";
}
dbFTP->Disconnect();
Main->SendaneMail(resultstext);
on the office computer remotly but haven't get a good response. Where can I find a list of commands for the idFTP module?
dbFTP->Passive = true;
dbFTP->Port = 21;
dbFTP->Host = "hostname;
dbFTP->Username = "usernamer";
dbFTP->Password = "password";
String resultstext = "database ftp unknown failure"; // email report text
dbFTP->Connect();
try {
if (dbFTP->Connected()) {
dbFTP->ChangeDir("/public_html/Map");
GetRemoteFilenames();
Delay(1);
CopyDBtoFTPServer(); // copies files from aisla folder to ftp server
GetRemoteFilenames(); // check on results
resultstext = "Backed up: ";
}
}
catch(...) {
resultstext = "database backup failed";
}
dbFTP->Disconnect();
Main->SendaneMail(resultstext);