put result by php in a file and read it by javascript or jquery
<p>i want put result by php in a file (or other thing) and read it by javascript or jquery and print
but php already write in file and i want javascript or jquery recognize new writing.</p>

<ol>
<li>use file is good idea for that?</li>
<li>i use buffer in php but my server not support that (its works in xamp but server no)</li>
</ol>

<blockquote>
<pre><code>for($i=0;i&lt;2000;i++) {
// this part of code run in 2 minute and output a $result 
// send $result to browser for show
}
</code></pre>
</blockquote>

<p>i want every $result print in a browser by file or ... but <strong>show $result realtime(dont wait for run all code)</strong>
example show result in <a href="http://duckduckgo.com/?q=jetaudio" rel="nofollow">http://duckduckgo.com/?q=jetaudio</a></p>
