barbs75 Posted July 13, 2008 Share Posted July 13, 2008 hey guys, I'm having a slight problem to do with directories..... i have my login script within a folder called 'function' so when the login page is called, it goes: /function/login.php so when i try redirecting to a page not in this directory it can't find it, because it isn't the same directory as the login script, say if i was trying to redirect to index.php it would do the following: /function/index.php does anyone know how i go back through a directory?? cheers for your help guys Craig Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted July 13, 2008 Share Posted July 13, 2008 ./ go back one folder ../ go back two , etc. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted July 13, 2008 Share Posted July 13, 2008 ./ is the current directory. ../ is the directory below the current directory. ../../ is 2 directories below the current. etc etc.. Quote Link to comment Share on other sites More sharing options...
barbs75 Posted July 13, 2008 Author Share Posted July 13, 2008 hey guys, Thanks for your reply, its a bit of a no-brainer to be honest, but I have never had to jump back through directories before!! So cheers for the help! Cheers Craig Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.