tfk wrote:
> 
> On Fri, Apr 10, 2009 at 12:18 PM, Bart McLeod <[email protected]> wrote:
>>
>>
>> till schreef:
>>
>> On Thu, Apr 9, 2009 at 2:45 PM, Bart McLeod <[email protected]> wrote:
>>
>>
>> shell_exec returns the output from the shell, any chance that is
>> outputting
>> something?
>>
>> -Bart
>>
>>
>> Yeah, so I narrowed it down to a system() call (in another method
>> which is used in the first) -- supposedly trapped in ob_start() and
>> ob_end_clean(). I don't know why that didn't work. It still works on
>> other PHP versions (see my first email in this thread).
>>
>> So what I am doing now is this:
>> $response = shell_exec($cmd);
>>
>>
>> And are you saying this works now, or still not?
> 
> With 5.2.9 system()'s implicit flush is not trapped by the output
> buffering. So I switched to shell_exec and that works very well. Just
> took me a while to find this due to the error message.
> 
> Till
> 
>> -Bart
>>
>> Before:
>> ob_start();
>> system($cmd);
>> $response = ob_get_contents();
>> ob_end_clean();
>>
>> Till
>>
>>
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/classic-headers-already-sent-tp658384p786651.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to