Table of contents Home page
// Create an empty file for the purpose of deleting it $handle = fopen('test.tmp', 'a'); fclose($handle); if (unlink('test.tmp')) { echo "The file has been deleted.\n"; } else { echo "The file couldn't be deleted.\n"; }