Wildcard search

From: Date: Fri, 08 Nov 2002 14:34:49 +0000
Subject: Wildcard search
Groups: php.general 
Request: Send a blank email to php-general+get-123382@lists.php.net to get a copy of this message
I've tried doing a search for this problem on the web, but haven't found anything, nor have I found any solution on the php.net documentation. Does anyone know if it's possible to do a file search with a wildcard character? I need to find if there are any HTML files in a certain directory, but file_exists("htmls/*.html") doesn't seem to work when tested. Neither do similar applications of readdir(). Is there another way to do this, or do I have to do a readdir() and read the filename of every file until I find an HTML or until all files have been read. --------------------------------- Do you Yahoo!? U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

« previous php.general (#123382) next »