Just like the topic says, how do you check to see if a sub-directory of the current directory exists? So if you were in the directory main, how would you check to see if main/sub exists? Thanks for any help.
$subdir = "...main/sub"; if(file_exists($subdir)) { //do something when it exists } else { //do something when it doesn't }
Hope that helps you.
It helps very much thanx 🙂 OK well I can't mark it resolved but it is.
Well...why not? It's the answer to your question isn't it? lol What are you having problems with?
No i mean when i click mark thread resolved it doesn't work. Your answer is all I needed and I'm saying no more help is required. Stupid website...
Awww....LOL 🙂
Yeah, some peeps are having probs with the whole resolved thing, while others aren't. 😃