Page 1 of 1

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

Posted: Sun Oct 15, 2006 4:48 pm
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.

Posted: Sun Oct 15, 2006 4:50 pm
by volka
Feasable functions can be found at http://de2.php.net/filesystem

Thanks Got It

Posted: Sun Oct 15, 2006 4:57 pm
by anirbanb2004
Thanks..got the function file_exists()
thanks again