checkHeader($imageUri); //echo "ext=$ext und head=$head
"; if ( $head == 1 ){ file_put_contents('/tmp/checkPicture.log', "$imageUri:true\n", FILE_APPEND | LOCK_EX); echo "true"; exit(0); } $ext = $img->checkExtension($imageUri); if ( $ext == 1 ) { file_put_contents('/tmp/checkPicture.log', "$imageUri:true\n", FILE_APPEND | LOCK_EX); echo "true"; exit(0); } file_put_contents('/tmp/checkPicture.log', "$imageUri:false\n", FILE_APPEND | LOCK_EX); echo "false"; exit(0); ?>