Page 1 of 1

getting the correct directory

Posted: Thu Jul 22, 2004 4:57 am
by pelegk2
i have thi path on a linux server :

Code: Select all

site/web/inter


i am doing this :

Code: Select all

opendir(getcwd()."../PDF/")


the thibs is that i want to access a folder that is under :

Code: Select all

site/web/files2


and i tried to do the above code to point to another directory
like in wondows but it idnt work!
is there a way i can do it?
thnaks in advance
peleg

Posted: Thu Jul 22, 2004 10:24 am
by feyd
you may have to resolve the path yourself. Or the dir doesn't exist with that path from the script's location..