if(move_uploaded_file($_FILES[$thumbnail_fieldname]['tmp_name'], $thumbnail_filename) &&
//move desktop files
move_uploaded_file($_FILES[$desktop_fieldname_1280x800]['tmp_name'], $desktop_filename_1280x800) &&
move_uploaded_file($_FILES[$desktop_fieldname_1366x768]['tmp_name'], $desktop_filename_1366x768) &&
move_uploaded_file($_FILES[$desktop_fieldname_1920x1080]['tmp_name'], $desktop_filename_1920x1080)){
echo "<p>We can move all files.</p>";}
In my code above the text is not printed when one of the conditions fail, and that is because of && which means all needs to be true, what I want to achieve here is when any of the file is selected to upload it should go through the condition and print the text, and if any one or two of the files is not selected it can skip and still print the text since one file is existing, and if no file is selected then the condition should be false. It can't be done with || since with that if one is true everything is true, so what combination can be used to do this?
For example thumbail file moved = ture
desktop file 1280x800 moved = ture
desktop file 1366x768 not moved = false //from here it should test the next condition
desktop file 1920x1080 moved = true
//and should print the output.
||won't work, because if one "desktop" file is uploaded but no thumbnail, it will pass the test. Also, as @hek2mgl suggested, not allmove_uploaded_file()calls are guaranteed to be executed, due to short-circuit evaluation.