Re: popen() on Win32
| From: | Zeev Suraski | Date: | Wed, 03 Jan 2001 10:02:26 +0000 |
| Subject: | Re: popen() on Win32 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42785@lists.php.net to get a copy of this message | ||
Daniel Beulshausen got pretty far on this front. I've played with his patch and couldn't get it to work perfectly, but it definitely appears to be in the right direction.
Zeev
At 10:35 3/1/2001, Andi Gutmans wrote:
As some of you might know, popen() on Win32 doesn't work in non-console mode (i.e. IIS). This means that all functions which rely on it don't work. The way to implement it is using CreateProcess() and in some way try and manually create the pipe between father/child. Before that you need to allocate a Win32 pipe (with something like CreatePipe()) and possibly do some other magic such as allocate a console (or not). Is anyone here a Win32 programmer with some spare time to mess around with it and can try to get it to work. Another reference could be Apache 2.0's APR library. They do it there but I'm not sure if they have the same initial problem where Apache doesn't run on a Console. I remember 1.3.x does run on a console. Volunteers? :) Andi -- 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-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/