How to wrap a PHP System() or set a fixed width
<p>This little problem has been keeping me busy for a few days now.</p>

<p>I have a PHP system() command that executes a command, like this example:</p>

<pre><code>echo '&lt;p&gt;';
system (escapeshellcmd("uname -a"));
echo '&lt;/p&gt;';
</code></pre>

<p>The output is printed to the PHP page, but i would like to limit or wordwrap the width of the lines printed and prevent the command from printing the results outside the page boundary (width of 500px).</p>

<p>I'm bound to using the system (escapeschellcmd()); so i'm looking for a solution that incorporates this command.</p>

<p>I was unable to find even a hint to a solution...</p>

<p>Peter</p>
