Page 1 of 1

Reading Dirs...

Posted: Sun Sep 21, 2003 11:46 am
by test123
Hello,

from a given directory (for example "www.test.com") I have to search the subdirectories for an special file - so I need a function (or something ;-) that automatically searches a directory with its subdirectories till there is the file. I am trying for nearly a week now, and I will get mad about it ;-)

Perhaps somebody could help me - or give me a wink...

thx.

Posted: Sun Sep 21, 2003 12:40 pm
by volka
rom a given directory (for example "www.test.com")
can you access it locally (like /usr/httpd/htdocs/...)?

Posted: Sun Sep 21, 2003 12:58 pm
by test123
Yes. The "Way" to the file should be saved in a var or an array.

Posted: Sun Sep 21, 2003 1:34 pm
by SantaGhost
take a look at:

http://nl.php.net/manual/en/function.readdir.php

its allways wise to check the manual for possible soutions to your problem, if you encounter problems iplementing the code let me know