Home | History | Annotate | Download | only in resources
      1 <?php
      2 require_once 'portabilityLayer.php';
      3 
      4 if (!sys_get_temp_dir()) {
      5     echo "FAIL: No temp dir was returned.\n";
      6     exit();
      7 }
      8 
      9 $tmpFile = sys_get_temp_dir() . "/" . $_GET['filename'];
     10 
     11 $stat = stat($tmpFile);
     12 if (!$stat) {
     13     echo "FAIL: stat() call failed.\n";
     14     exit();
     15 }
     16 
     17 $mtime = $stat['mtime'] + 1;
     18 
     19 if (!touch($tmpFile, $mtime)) {
     20     echo "FAIL: touch() call failed.\n";
     21 }
     22 ?>
     23