exec("ls -l", $result);
$buffer="";
foreach($result as $line) { $buffer.=$line; }
echo $buffer;
The above result returns nicely, but if i ssh through exec, and the returned result is a big buffer, i expect buffer overflow..
What should i do to escape this kind of problem?