Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reference a folder above the one you're in...i know it's ./

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
what i'm looking for is a way to reference a folder that sits 2 folders above the one the script runs in...

it's for referring a session variable.

Code:
$session = new CGI::Session(undef, $sid, {Directory=>'../tmp'}); 2 .'s

this works fine, but i need to go one more up...i thought i could put:

Code:
$session = new CGI::Session(undef, $sid, {Directory=>'.../tmp'}); 3 .'s

but that doesn't seem to work.

it only created a folder called ...tmp so that wasn't good.

any ideas?

- g

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top