Link to home
Start Free TrialLog in
Avatar of kplonk
kplonk

asked on

How To Move up one dir

Using this code
$thisdir=opendir('.');
I am able to cycle through the contents of the current dir,

what i want to do is the same thing for the dir above the ccurrent i thought that
$thisdir=opendir('..');
would do the job but is does not what is the corrent argument for one dir above the current one.

thanks -k-
Avatar of axis_img
axis_img

opendir("..") has always worked for me. Can you give some information as to what system you are running currently?

Also, try:

opendir("../")

I do not think the slash should make a big difference, as both methods work for me. Just to be sure though.

Regards,
Barry
ASKER CERTIFIED SOLUTION
Avatar of axis_img
axis_img

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kplonk

ASKER

Seems i .. was wroking however the proble laied more in the script the chdir() command sorted that so thatanks