HELP!!!-Checking a folder For a particular File

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
anirbanb2004
Forum Newbie
Posts: 23
Joined: Sun Oct 15, 2006 4:21 pm

HELP!!!-Checking a folder For a particular File

Post by anirbanb2004 »

Hi,
Can anyone tell me how to search a particular folder for a particular file?
should exec/system should be called?if so how.please tell me.

I am explaining with an example....

suppose the file to be searched is test.cpp and the folder is source.

Now the function will search in the folder source for the file test.cpp.If found returns true else returns false.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Feasable functions can be found at http://de2.php.net/filesystem
anirbanb2004
Forum Newbie
Posts: 23
Joined: Sun Oct 15, 2006 4:21 pm

Thanks Got It

Post by anirbanb2004 »

Thanks..got the function file_exists()
thanks again
Post Reply