Re: Pipe the content of a variable to a process [message #173046 is a reply to message #173045] |
Fri, 18 March 2011 19:21 |
Marco
Messages: 11 Registered: March 2011
Karma:
|
Junior Member |
|
|
On 2011-03-18 Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
> Are you running your test from the CLI? Or are you trying to run it as
> part of the web page?
>
> If the latter - are you putting out valid html? Have you looked at the
> document source to see what's there?
At first I tried putting it into a (valid) web page. During the creation of
the minimal example I removed all the html stuff. I sent the complete script
in my second post in this thread. When I look directly at the source I just
see the »0« (echo $return_value . "\n";). And when I redirect stdout and
stderr to a file there's a »0« in file_stdout and file_stderr is empty.
I have absolutely no clue what's going on here, since it works with »cat« as a
process and gnuplot works with »passthru«. That »cat« works means that my
workflow with the pipes is right and that gnuplot works with »passthru« means
that gnuplot is working inside PHP.
Thanks for your help, I hope we can get it solved.
Marco
|
|
|