PHP: How to search a file using wildcards

Posted by doc on Stack Overflow See other posts from Stack Overflow or by doc
Published on 2010-04-01T17:27:01Z Indexed on 2010/04/01 17:33 UTC
Read the original article Hit count: 272

Filed under:
|
|

I need to read a file in PHP, but I only know the end of the filename, so I need to serch the file in a given directory using wildcards: *filename.wav and then return it to the browser. Is there a function to do that? or I need to get all the files in the directory and then search one by one?

Thanks for all the comments and help.

© Stack Overflow or respective owner

Related posts about php

Related posts about files