1<?php 2require_once 'portabilityLayer.php'; 3 4if (!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); 12if (!$stat) { 13 echo "FAIL: stat() call failed.\n"; 14 exit(); 15} 16 17$mtime = $stat['mtime'] + 1; 18 19if (!touch($tmpFile, $mtime)) { 20 echo "FAIL: touch() call failed.\n"; 21} 22?> 23