What is the way to show the progress of calculations?
<p>I would like to monitor my program which is running on the web server.
Can I draw the progress bar or simply show the percentage which is returned by my code?
The php script is spawning the external code with parameters.</p>

<pre><code> $Status="rendering...";
 $cmd = "cd $rpath &amp;&amp; $envopts /home/arm2arm/bin/sph2grid";
 $shellcmd=$cmd.$params.'| tee  sph2grid.log ';
 echo '&lt;strong&gt;'.$shellcmd.'&lt;/strong&gt;';
 $tmp=shell_exec($shellcmd);
</code></pre>

<p>then after all I am showing the log file:</p>

<pre><code> &lt;?php
 function ViewLog() {
 $string = file_get_contents('../../PHP-Login/tmp/sph2grid.log');
 $string = str_replace("\n", '&lt;br&gt;', $string);
 echo $string;
 }    
 ?&gt;
</code></pre>

<p>Can I bind the output of my application to some <code>"&lt;div&gt;"</code>?</p>

<p>Thanks in advance.</p>

<p>Arman.</p>
