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?

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

2002-12-09 Thread bill
Have you tried passive mode? Vinod wrote: > Hi friends, > > I am having a DSL Internet connectivity in our office and my PC is > connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the > browser(Mozilla) in my PC is configured to connect to net through the > proxy > > When I tried to c