note 73728 rejected from function.readdir by philip

From: Date: Thu, 08 Mar 2007 03:17:25 +0000
Subject: note 73728 rejected from function.readdir by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124220@lists.php.net to get a copy of this message
Note Submitter: singh206 at gmail dot com ---- When I place my .php file in a folder on the root directory this works, but if I place it in the root directory it starts randomly adding '._' to the files in the array. Does anyone have any idea whatsoever why this might occur? function makeArray($Directory){ $myArray = array(); if ($handle=opendir($Directory)){ while (false!==($myFile = readdir($handle))){ if ($myFile!="." && $myFile!=".." && $myFile =".DS_Store"){ array_push($myArray,basename("$myFile")); } } closedir($handle); } return $myArray; }

« previous php.notes (#124220) next »