Hi. Got a bit of a weird error message being returned by Net::FTP when trying to log in.
Code is;
if ($remote_ftp) {
print "\n\nFTP'ing to $url...\n\n";
use Net::FTP;
my $_ftp = Net::FTP->new($url, Debug => 1) or &error("Cant FTP. Reason: $!");
$_ftp->login("$user","$pass");
if ($cwd_to) {
$_ftp->cwd($cwd_to);
}
if ($dateorname eq "name") {
$_ftp->put("mysqlbackup.sql.gz");
} else {
$_ftp->put("$date.sql.gz");
}
$_ftp->quit or &error("FTP Upload failed!");
}
...shows;
I've even tried hard coding int he URL/user/pass, but I still get this weird error.
Anyone got any ideas? I'm stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Code is;
Code:
# if they want FTP stuff, then transfer it to the FTP site... if ($remote_ftp) {
print "\n\nFTP'ing to $url...\n\n";
use Net::FTP;
my $_ftp = Net::FTP->new($url, Debug => 1) or &error("Cant FTP. Reason: $!");
$_ftp->login("$user","$pass");
if ($cwd_to) {
$_ftp->cwd($cwd_to);
}
if ($dateorname eq "name") {
$_ftp->put("mysqlbackup.sql.gz");
} else {
$_ftp->put("$date.sql.gz");
}
$_ftp->quit or &error("FTP Upload failed!");
}
...shows;
Quote:
Error: Cant FTP. Reason: No such file or directoryI've even tried hard coding int he URL/user/pass, but I still get this weird error.
Anyone got any ideas? I'm stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

