readdir() question

From: Date: Tue, 15 Aug 2006 17:04:21 +0000
Subject: readdir() question
Groups: php.general 
Request: Send a blank email to php-general+get-240715@lists.php.net to get a copy of this message
I have a script to list the files in a directory: <select name="letters"> <?php $open = opendir("."); while ($file = readdir($open) != false) { ?> <option value="<?=$file?>"><?=$file?></option> <?php } ?> </select> </form> And all I am getting are "1"s. I think I'm doing it right, what is the disconnect?

« previous php.general (#240715) next »