verN Posted April 17, 2007 Share Posted April 17, 2007 i have on folder called test. Within test there are two folders called problem and the other solution. At the moment i am in the solution folder and wish to go to the problem folder which has a file called index.php. Porblem is how to I write this. // doesn't work $test = "\.\index.php"; header("Location: $test"); Thanks Quote Link to comment https://forums.phpfreaks.com/topic/47467-solved-location-problem/ Share on other sites More sharing options...
MadTechie Posted April 17, 2007 Share Posted April 17, 2007 <?php header("Location: /./index.php"); ?> if this fails use the path from the root Quote Link to comment https://forums.phpfreaks.com/topic/47467-solved-location-problem/#findComment-231645 Share on other sites More sharing options...
verN Posted April 17, 2007 Author Share Posted April 17, 2007 chnaged it to something else and it works now Quote Link to comment https://forums.phpfreaks.com/topic/47467-solved-location-problem/#findComment-231650 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.