- touch: documentation ( source)
- strtotime: documentation ( source)
<?php
// Modification and access time
touch("/tmp/test2", strtotime("@0"), strtotime("@100400500"));
$fileInfo = new SplFileInfo("/tmp/test2");
print($fileInfo->getMTime()."\n");
print($fileInfo->getATime()."\n");