Umm, try this:
$ftp = ftp_connect(ftp.direw.net) or die(Couldn't connect.);
See if you get Couldn't connect.
I suspect it's cause your both checking the variable and setting it in
the same clause.
On Mon, 2002-12-09 at 12:34, bill wrote:
Have you tried passive mode?
it doesn't look like the FTP is failing becuase of the if() construction,
becuase this works fine...
?
if(!($ftp = 1)) {
print No;
}
else {
print Yes;
}
?
Have you tried checking error messages (IIRC, $php_errmsg can be
setup to hold the most recent error message), or try turning up the
error
2 matches
Mail list logo