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-
$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-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Seems i .. was wroking however the proble laied more in the script the chdir() command sorted that so thatanks
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