This script reads the content of the directory and turns it into the array. The problem is, that this script reads the names of the subdirectories in this directory too!
if ($directory = opendir('data/start')) { while (false !== ($faila_nos = readdir($directory))) { if ($faila_nos != "." && $faila_nos != "..") { return $faila_nos; } } closedir($direktorija); } // For example the array outputs: other files notes my directory flowers.txt cars.txt animals.txt // and not just: flowers.txt cars.txt animals.txt How to solve this problem? Thanks, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php