Re: backtick : maximum output size?
| From: | Curt Zirzow | Date: | Mon, 01 Sep 2003 17:25:23 +0000 |
| Subject: | Re: backtick : maximum output size? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161370@lists.php.net to get a copy of this message | ||
* Thus wrote Mark Walker (phpml@budgetlinuxcds.com):
> Hi
>
> I'm using backticks to run a program (actually isoinfo), and then present
> the information to the users of my site.
>
> Everything is fine *most* of the time. I have one .iso file whose contents
> end up as around a 9Meg file to be presented to the user. PHP just
> segfaults. No error, nothing, the php process just crashes.
9mb is a lot of data to pass around, consider using the passthru()
function:
http://php.net/passthru
Or saving the output to a file then feeding that file to the user.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."