getting the correct directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

getting the correct directory

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you may have to resolve the path yourself. Or the dir doesn't exist with that path from the script's location..
Post Reply