title: getting modified time of a remote file in PHP
body: <p>I'm having some problems with the two functions <code>filemtime()</code> and <code>file_get_contents</code></p>
  
  <p>I have this variable </p>
  
  <pre><code>$dataFileName = 'http://www.dota2u.com/newd2u/longpoll/data.php';
  </code></pre>
  
  <p>and this </p>
  
  <pre><code>$modifiedAt = filemtime( $dataFileName );
  </code></pre>
  
  <p>The weird thing is than I can't get the <code>filemtime()</code> now, but if I do this:</p>
  
  <pre><code>$dataFileName = 'data.php';
  </code></pre>
  
  <p>it works... the problem is that I need the full path. Is there a solution?</p>