Moving a file across filesystems : unlink « File Directory « PHP






Moving a file across filesystems

 
<?php
if (copy("/tmp/code.c","/usr/local/src/code.c")) {
  unlink("/tmp/code.c");
}
?>
  
  








Related examples in the same category

1.Deleting Files with unlink( )
2.Delete a file with the unlink() function.
3.Using file_exists, touch, and unlink together
4.Using the unlink() Function
5.You can remove an existing file with the unlink() function.
6.Deleting a file
7.Deleting files