if (!$handle) { echo "geht nicht!"; } else { while ( $inhalt = @fgets ($handle, 4096 )) { echo "$inhalt"; }