Re: Pipe the content of a variable to a process [message #173044 is a reply to message #173042] |
Fri, 18 March 2011 17:27 |
Marco
Messages: 11 Registered: March 2011
Karma:
|
Junior Member |
|
|
On 2011-03-18 Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
>>> I suggest you ask the gnuplot people. I don't think the problem is the
>>> output stream is failing - I think your commands are incorrect.
>>
>> I know gnuplot pretty well. Without arguments it can be used directly in a
>> pipe (with proper input on stdin, of course). It would be difficult to get
>> help in the gnuplot group, since it works on the command line.
>>
>>
>> Marco
>>
>
> OK, I read that backwards
>
> But the pipes in PHP work fine - I've used them successfully before.
>
> Is this binary data which is being passed back?
No, it's text (svg image).
> Also, are you running this as using CLI or is it part of a web page?
It's part of a web page. However I made a minimal example where I removed all
unnecessary stuff to minimize interference with other code.
Marco
|
|
|