title: SetInterval function is not working with PHP File
body: <p>I have index.html like this</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/
  libs/jquery/1.3.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  var auto_refresh = setInterval(
  function ()
  {
  //alert("abc");
  $('#mydiv').load('xyz.php').fadeIn("slow");
  }, 1000); 
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="mydiv"&gt; &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In same folder there is xyz.php file whose code is this:</p>
  
  <pre><code>&lt;?php
  echo "My first PHP script!";
  ?&gt;
  </code></pre>
  
  <p>When I uncomment <code>//alert("abc");</code> and comment <code>$('#mydiv').load('xyz.php').fadeIn("slow");</code>
  alert message comes every second but vice versa is not working when I am calling php file and commenting alert message. Why?</p>