i have 2 functions.
if the first is called it changes the directory to:
chdir("users/$selected/$selected2/");
if the second is called:
chdir("users/$selected/$selected2/tn/");
now fails because the directory has been moved forward.
this is a basic question i know:
but how do i reset the directory at the end of a function?
how do i go back?
rewinddir("/"); does not seem to work.
the docs are not clear on this.
I just want to reset the directory at the end of a function. Thank you.