November 2002
Intermediate to advanced
640 pages
16h 33m
English
You want to delete a file.
Use unlink( )
:
unlink($file) or die ("can't delete $file: $php_errormsg");The 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.
Documentation on unlink( ) at
http://www.php.net/unlink.
Read now
Unlock full access