Changing file modification times : touch « File Directory « PHP






Changing file modification times

 
<?php
touch('shemp.php');          // set modification time to now
touch('joe.php',$timestamp); // set modification time to $timestamp
?>
  
  








Related examples in the same category

1.Error-prone file locking
2.If a file does not yet exist, you can create one with the touch() function.