|
Posted by darrin.skinner on 02/06/06 13:07
Sjoerd,
I saw that reference in the PHP manual. I also saw this annotation and
am hopeful someone will know how to actually use this :-)
picaune at hotmail dot com
16-Oct-2005 05:51
The above note on Windows compatibility is not entirely correct.
Windows will dutifully pass on additional handles above 2 onto the
child process, starting with Windows 95 and Windows NT 3.5.
It even supports this capability (starting with Windows 2000) from
the command line using a special syntax (prefacing the redirection
operator with the handle number).
These handles will be, when passed to the child, preopened for
low-level IO (e.g. _read) by number. The child can reopen them for
high-level (e.g. fgets) using the _fdopen or _wfdopen methods. The
child can then read from or write to them the same way they
would stdin or stdout.
I don't know what the _fdopen and/or _wfdopen methods are and can't
find any reference to them. :-(
Thanks,
Darrin
Navigation:
[Reply to this message]
|