Here's a little workaround that allows the PHP user to touch a file it doesn't own:
<?php
$target_file = "/path/to/file/filename.txt"; $file_content = implode("",file($target_file));
@unlink($target_file);
if($savetofile = fopen($target_file, "w")) {
fputs($savetofile, $file_content);
fclose($savetofile);
}
$new_date = strtotime("23 April 2005"); touch($target_file,$new_date);
?>
Of course, PHP needs to have write access to the folder containing the file you want to touch, but that should be easy to arrange.