Jump to content

Backing up to previous directory with chdir


zfred09

Recommended Posts

Hi all,

 

Ok first of all I dont know all the lingo for directory structure, so lets just say for now we are in the directory named firstdir.  I then change directories to secdir without any problems.  How would I change directories back to firstdir? I tried the code below but it doesnt seem to work.  Thanks.

 

chdir("../firstdir");

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.