Reply to Re: [PHP] proc_open, fwrite, 16384 bytes magic

Your name:

Reply:


Posted by max on 11/02/05 11:44

> can you proc_open() anything else and get it to accept more than 16KB ?
> also 4.4.1 is out.

No, I've just tried the same with /bin/cat, I get the same result, i.e.:
<?php
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "/tmp/error-output.txt", "a")
);
$text = "";
for ($i=0; $i<10240; $i++) $text.="1";
$doccmd = "/bin/cat";
$res = proc_open ($doccmd, $descriptorspec, $pipes);
echo fwrite ($pipes[0], $text)."\n";
echo fwrite ($pipes[0], $text)."\n";
fclose ($pipes[0]);
?>

The output is:
10240
6144
which makes up exactly the magic 16384 bytes. So it's certainly not a qmail
issue.

Any ideas? :/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация