Re: new ftp-module doesn't work at all (on solaris & Win32)

From: Date: Fri, 12 Nov 1999 09:41:18 +0000
Subject: Re: new ftp-module doesn't work at all (on solaris & Win32)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-12340@lists.php.net to get a copy of this message
hi mark, On Thu, 11 Nov 1999, Mark Musone wrote: > if i'm not mistaken, a newline flushes a stream.. i think that's a wrong assumption. also stdio won't work on sockets on Win32 - (you simply cannot fdopen a socket into a FILE*) - tc > > either way, andy's checking into it.. > > > Mark > > > Andrew, > > how well is this module tested? - i'm under teh impression that: > > > > .... > > int > > ftp_login(ftpbuf_t *ftp, const char *user, const char *pass) > > { > > if (ftp == NULL) > > return 0; > > > > fprintf(ftp->fp, "USER %s\r\n", user); > > if (!ftp_getresp(ftp)) > > .... > > > > simply cannot work reliable, 'cause you *need* to make sure that your > > "USER.." gets flushed thru to the socket. (eg using fflush()). > > > > this is just a sample (flushes are missing all over the place). > > > > i'm also not sure if using stdio for the FTP protocol will be a reliable solution at > > all. using tis we'll never be able to handle time-outs etc. > > > > don't get me wrong: i really like the module as such - but in my opinion it needs > > more work. i was hoping i could use it to communicate to a weird FTP server that does not allow for > > STOR with a path-name.... > > > > > > regards, > > tc > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#12340) next »