Re: preventing output dump of passthru()
| From: | daniel at electroteque dot org | Date: | Wed, 06 Aug 2003 00:09:27 +0000 |
| Subject: | Re: preventing output dump of passthru() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158373@lists.php.net to get a copy of this message | ||
the whole idea of passthru is to output the stdout
i'd use exec and the stdout is stored as an array
> Hello,
>
> Trying to prevent the output dumping of passthru() and instead store
> the output in a variable.
>
> I read an article that suggested this:
>
> ob_start();
>
> passthru("command");
>
> $output = ob_get_contents();
>
> ob_end_clean();
>
> But that didn't work. Is there *ANY* way to achieve what I want?
>
>
> Thanks,
> Chris.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php