Re: new ftp-module doesn't work at all (on solaris & Win32)
| From: | Kristian Köhntopp | Date: | Fri, 12 Nov 1999 22:02:35 +0000 |
| Subject: | Re: new ftp-module doesn't work at all (on solaris & Win32) | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12416@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
> stdio streams are by default block buffered. You can change
> this to line buffered by using setvbuf().
$ man stdio
/buffer
Output streams, with the exception of the standard error
stream stderr, are by default buffered if the output refers
to a file and line-buffered if the output refers to a termi-
nal. The standard error output stream stderr is by default
unbuffered, but use of freopen() (see fopen(3S)) will cause
it to become buffered or line-buffered. When an output
stream is unbuffered, information is queued for writing on
the destination file or terminal as soon as written; when it
is buffered, many characters are saved up and written as a
block. When it is line-buffered, each line of output is
queued for writing on the destination terminal as soon as
the line is completed (that is, as soon as a new-line char-
acter is written or terminal input is requested). The set-
buf() or setvbuf() functions (both described on the
setbuf(3S) manual page) may be used to change the stream's
buffering strategy.
SunOS 5.7 Last change: 22 Jan 1993 2
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your
bookmarks!)