note 112255 added to function.scandir

From: Date: Fri, 24 May 2013 00:18:48 +0000
Subject: note 112255 added to function.scandir
Groups: php.notes 
Request: Send a blank email to php-notes+get-194889@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.199 Probable Submitter: 68.14.150.111 ---- Manual Page -- http://php.net/manual/en/function.scandir.php Edit -- https://master.php.net/note/edit/112255 Del: integrated -- https://master.php.net/note/delete/112255/integrated Del: useless -- https://master.php.net/note/delete/112255/useless Del: bad code -- https://master.php.net/note/delete/112255/bad+code Del: spam -- https://master.php.net/note/delete/112255/spam Del: non-english -- https://master.php.net/note/delete/112255/non-english Del: in docs -- https://master.php.net/note/delete/112255/in+docs Del: other reasons-- https://master.php.net/note/delete/112255 Reject -- https://master.php.net/note/reject/112255 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194889) next »