function delete( $file )
{
if( unlink( $file ) )
{
echo( "$file
has been deleted
" );
}
else
{
echo( "Unable to delete $file
" );
}
}
?>
Deleting files
# for Linux use...
#$file_A = "/errlog_bak";
#$file_B = "/errlog_not";
# for Windows use...
$file_A = "C:\\errlog.bak";
$file_B = "C:\\errlog.not";
delete($file_A);
@delete($file_B);
?>