Re: new ftp-module doesn't work at all (on solaris & Win32)
| From: | Thies C. Arntzen | Date: | Wed, 17 Nov 1999 18:43:16 +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-12671@lists.php.net to get a copy of this message | ||
On Wed, 17 Nov 1999, Mark Musone wrote:
> The only issue I have with this, is that this is far from
> the only network protocol module that is built into PHP.
but the only one build on to of stdio. again - fdopen on a socket *WILL*
not work on win32 as sockets on win32 are *NOT* files!
>
> what are the X other modules (ldap, imap ..etc..) that implement
> line-oriented protocols doing???
they use 3th party libs that run the protocol for them! these are usually
well tested libraries. stdio is not a well tested library for running a
telnet-protocol (which is what ftp uses) over the internet. out of all
ftp/telnet implementation i know none uses stdio for their networking
code.
>
>
> This is far from anything out of the ordinary. I know for a fact the the c-client
> library does not flush, and in fact i've hardly seen any network protocol sources
> that flush after evey line (thats actually the main reason why these protocols
> are line oriented.)
- do we agree that it won't work on windows?
- do we agree that *not* handling any type of time-outs etc is not
perfect?
mark, i'd love to have a working ftp-module in php - i've tried this one,
it didn't work for me, i looked into the sources and didn't like it that
much. (see above).
unless i'm completly wrong we need to make some drastic changes to it if
we want it to work with windows - also, if we want to handle timeouts some
real changes would be needed.
tc
>
>
> Mark
>
> >
> > On Fri, Nov 12, 1999 at 11:33:05PM +0100, Kristian Köhntopp wrote:
> > >
> > > Sascha Schumann wrote:
> > > > Are sockets terminals or files?
> > >
> > > A file descriptor is a "terminal", if the isatty()
> > > predicate returns true. It will then have line buffering
> > > by default, block buffering otherwise.
> >
> > We should not rely on the default mode. Since it is not
> > defined whether sockets are terminals/files, we should set
> > the type of buffer always.
> >
> > --
> >
> > Regards,
> >
> > Sascha Schumann
> > Consultant
> >
> > --
> > 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