Re: Pipe $var to a shell command
| From: | Tim T | Date: | Fri, 13 Jun 2003 23:07:04 +0000 |
| Subject: | Re: Pipe $var to a shell command | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151436@lists.php.net to get a copy of this message | ||
YYYYYYYEEEEEESSSSSSSS!
Finally - It works!!
I used the following:
$fp = popen("$mycommand", "w+");
fwrite($fp, $myoutput);
Thank you for your assistance. I've been looking at this for 2 days and
nothing was coming to mind!
Again thank you!
Tim
"Dvdmandt" <dvdmandt@telia.com> wrote in message
news:20030613223431.71318.qmail@pb1.pair.com...
> Ok, last reply from me I think... Must read until I know for sure before I
> post...
> http://se.php.net/manual/en/function.proc-open.php seems to be
> just what
you
> need!
>
> "Tim T" <tim@bwsweb.net> skrev i meddelandet
> news:20030613215805.43303.qmail@pb1.pair.com...
> > I have a mem var $myoutput I would like to pipe it to the input of a
> > shell_exec command.
> >
> > I tried shell_exec("command < $myoutput") however this is not quite
> right.
> > Anybody have any ideas??
> >
> >
>
>