Reply to Re: how to use proc_open and a non-standard file descriptor

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация