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