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 Link to comment https://forums.phpfreaks.com/topic/114515-solved-moving-back-through-directories-when-linking-to-pages/ 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. Link to comment https://forums.phpfreaks.com/topic/114515-solved-moving-back-through-directories-when-linking-to-pages/#findComment-588858 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.. Link to comment https://forums.phpfreaks.com/topic/114515-solved-moving-back-through-directories-when-linking-to-pages/#findComment-588867 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 Link to comment https://forums.phpfreaks.com/topic/114515-solved-moving-back-through-directories-when-linking-to-pages/#findComment-589131 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.