Re: [PHP] Re: Not able to connect to FTP server

2002-12-09 Thread Scott Hurring
it doesn't look like the FTP is failing becuase of the if() construction, becuase this works fine... 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 reporting on your test server to E_ALL (look in php.ini)

Re: [PHP] Re: Not able to connect to FTP server

2002-12-09 Thread Adam Voigt
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?