You are here: Re: help with proc_open(): some apps work - some don't « PHP Programming Language « IT news, forums, messages
Re: help with proc_open(): some apps work - some don't

Posted by arielCo on 11/25/05 03:01

Update: a simple script like this works fine as the child process:

#!/usr/local/bin/php
<?php
while ( trim($line = fgets(STDIN)) != 'exit' )
fwrite(STDOUT,$line);
exit(0);
?>

But 'grep .' doesn't - it also requires me to fclose its stdin.
Is this about stream buffering? I've tried
stream_set_write_buffer($pipes[0],0), to no avail.

help!

- Ariel

 

Navigation:

[Reply to this 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

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