This does not work. It deletes the first and not the second:
Code: Select all
if ((!unlink($file1)) && (!unlink($file2))){
echo 'files could not be deleted';
}Code: Select all
unlink($file1);
unlink($file2);
if ((file_exists($file1)) || (file_exists($file2))){
echo 'Files could not be deleted from server.';
}Wayne