Matching Strings in Files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
junestag
Forum Commoner
Posts: 39
Joined: Tue Sep 18, 2007 5:14 pm
Location: Alaska
Contact:

Matching Strings in Files

Post by junestag »

I have files i need to match up with database records. I've already got the data pulled into a file and am showing it on a web page. But now I need to match a string from the data i've pulled to part of a filename from a separate directory so i can put a link to that file next to the record it matches. can someone tell me how this might be done?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

file_exists(), is_file() among others could be of use.
Post Reply