Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching For A File 1

Status
Not open for further replies.

likelylad

IS-IT--Management
Jul 4, 2002
388
GB
Hi
I was wondering if someone could help me out.

I want to search a folder for a pre-specified file name.
I am using the file_exists function which works fine.

However what I would like to do is search for a file if I don't have the file extension bit.

For example:
In Windows you can do a search for test.*,

I would like to do something similar to this but it does not have to be able to search sub-folders.




 
I had to upgrade to PHP version 5 but the glob() function does exactly what I want.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top