I am using the nlist()
function from PHPseclib
to list the contents of a directory on a remote server. This is the result I get.
Array ( [0] => newfile.txt [1] => . [2] => .. [3] => oldfile.txt [4] => ReadMe.pdf )
.
I do have the following files in this folder.
1. newfile.txt
2. oldfile.txt
3. ReadMe.pdf
But, why is it putting the . and .. in the array? This seems to happen no matter what directory I am in or how many items are in that directory.