Reply to Re: Execute extneral programs with interactivity?

Your name:

Reply:


Posted by Colin McKinnon on 10/21/05 00:02

weberjacob@gmail.com wrote:

> I looked at that ... after checking out some of the examples, I was
> able to make it do basically the same thing that system() or popen()
> was doing. It still doesn't seem to handle user input normally.
>
> I guess I need to send the stdin (from the PHP script) to the stdin of
> the process that I open. But how do I do that?
>
> Thanks,
> Jacob

On Microsoft/Linux/Unix with a recent PHP:

$inh=fopen("stdin://", 'r');

With Linux/some Unix:
$inh=fopen("/dev/stdin", 'r');

C.

[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

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