? Sub Directories

From: Date: Thu, 25 Mar 2004 07:07:06 +0000
Subject: ? Sub Directories
Groups: php.general 
Request: Send a blank email to php-general+get-181450@lists.php.net to get a copy of this message
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.

« previous php.general (#181450) next »