note 112255 deleted from function.scandir by cmb

From: Date: Sun, 17 Nov 2019 09:03:48 +0000
Subject: note 112255 deleted from function.scandir by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213113@lists.php.net to get a copy of this message
Note Submitter: holdoffhunger at gmail dot com ---- If you would like to use scandir on the root directory of your server, you would imagine the command to be either scandir("") or scandir("/"), but neither work. However, scandir(".") works perfectly. Use scandir("/") and scandir("..") to poke around the Linuxy areas of your webhost. At least, these are the observations I've made with my own webhost when it comes to root directory scandir.

« previous php.notes (#213113) next »