If a file does not yet exist, you can create one with the touch() function. : touch « File Directory « PHP






If a file does not yet exist, you can create one with the touch() function.

 
<?
touch("myfile.txt");
?>
  
  








Related examples in the same category

1.Changing file modification times
2.Error-prone file locking