Wie frage ich am besten ab, ob eine URL, bzw. ein Pfad existiert, bzw. in einem Ordner überhaupt etwas enthalten ist?
...
Ich hoffe, dass zweiteres immer funktioniert, alternativ kannst du noch prüfen, ob scandir($dir) als 1. und 2. Element wirklich nur "." und ".." enthält.
--
A human is a system for converting dust billions of years ago into dust billions of years from now via a roundabout process which involves checking email a lot.