title: How to get my .php site to refresh when the contents of the .txt file is modified
body: <p>I have a .php file that displays a .txt from my FTP server to a webpage.</p>
  
  <p>My problem is that I want to get the .php page to refresh when something is added to the .txt file.</p>
  
  <p>Right now I'm using this:</p>
  
  <pre><code>&lt;?php
      header("Refresh: 5; URL=$url1");
      include('filename.txt');
  ?&gt;
  </code></pre>
  
  <p>Which refreshes the page every five seconds to see if the .txt file is modified. I dislike this method because it spams my logs of who is viewing the webpage with the same information.</p>
  
  <p>I was wondering if I could modify the .php to refresh only filename.txt is modified.</p>