24.5.1. ProblemYou want to delete a file. 24.5.2. SolutionUse unlink( ), as shown in Example 24-16. Deleting a file
24.5.3. DiscussionThe function unlink( ) is only able to delete files that the user of the PHP process is able to delete. If you're having trouble getting unlink( ) to work, check the permissions on the file and how you're running PHP. 24.5.4. See AlsoDocumentation on unlink( ) at http://www.php.net/unlink. |