note 6770 modified in readdir by ronabop

From: Date: Wed, 11 Oct 2000 04:02:51 +0000
Subject: note 6770 modified in readdir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6351@lists.php.net to get a copy of this message
To sort out files, just use the same mechanism in the example that stripped out the "." and ".." files. so, if you wanted to show only files ending in ".foo", you would do something like: if ($file != "." && $file != ".." && ereg(".foo",$file)) http://www.php.net/manual/function.readdir.php

« previous php.notes (#6351) next »