Hallo Dieter.
Danke auch dir für die Anmerkung. Ich habe es nun wie folgt gelöst:
$file = getimagesize($_FILES['userfile']['tmp_name']);
if ($file[2]>0 AND $file[2]<5 AND $_FILES['userfile']['size']<=$max_file_size) {
// usw.
Konstruktive Kritik auch dazu natürlich willkommen.
MfG, Kungschu.
--
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.