title: filemtime not finding files
body: <p>I'm trying to get the date and time of the last modification of some files using <code>filemtime</code>. Unfortunately, this is failing for all of my files. I've tried using the full, complete path (e.g. www.mysite.com/images/file.png). I've tried just using the extension (e.g. /images/file.png) and also just the file name itself (file.png). Nothing is working. How can I pass the path reference so that it can find my files? Thanks!</p>
  
  <pre><code>&lt;br /&gt;n&lt;b&gt;Warning&lt;/b&gt;:  filemtime() [&lt;a href='function.filemtime'&gt;function.filemtime&lt;/a&gt;]: stat failed for www.mysite.com/images/hills.png in &lt;b&gt;D:\Hosting\11347607\html\mobile\updateImages.php&lt;/b&gt; on line &lt;b&gt;20&lt;/b&gt;&lt;br 
  </code></pre>
  
  <p>This is the php script:</p>
  
  <pre><code>&lt;?php
  
      include '../scripts/connection.php';
  
      //get information on this location from the database
      $sql = "SELECT * FROM types";
      $result = mysql_query($sql);
  
      $array = array();
      while ($row = mysql_fetch_array($result)) {
          $path = $row['path'] . $row['picture_url'];
          $last_mod = filemtime($path);
          $this_file = array(
              'filename' =&gt; $row['picture_url'],
              'last_mod' =&gt; $last_mod
          );
          $array[$row['type']] = $this_file;
      }
  
      echo json_encode(array('result'=&gt;'success', 'message'=&gt;$array));
  ?&gt;
  </code></pre>