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 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 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 Link to comment https://forums.phpfreaks.com/topic/47467-solved-location-problem/#findComment-231650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.