sstangle73 Posted September 4, 2007 Share Posted September 4, 2007 what the best way to go to a mait page. i have a function on every page but a header wont work cuz its not on top. so whats the best thing to put in there? i would like to stay away from a meta redirection i guess i could use mod re right? Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/ Share on other sites More sharing options...
teng84 Posted September 4, 2007 Share Posted September 4, 2007 explain more ? Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/#findComment-341664 Share on other sites More sharing options...
sstangle73 Posted September 4, 2007 Author Share Posted September 4, 2007 im trying to find the best way to block access to the entire site for some people when i am working on it. Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/#findComment-341670 Share on other sites More sharing options...
teng84 Posted September 4, 2007 Share Posted September 4, 2007 on each page add session at the topmost and then put header sample session_start(); if (!isset($_SESSION['name'] )) { header ('location: put the page of log in page'); } ??? Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/#findComment-341673 Share on other sites More sharing options...
sstangle73 Posted September 4, 2007 Author Share Posted September 4, 2007 headers wouldnt work for me i dont know why and dont wanna try to trouble shoot it i just am looking for a different way. Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/#findComment-341677 Share on other sites More sharing options...
teng84 Posted September 5, 2007 Share Posted September 5, 2007 i dont understand you thats the simplest way have you tried ob_clean and other stuff like that http://www.php.net/manual/en/function.ob-clean.php Quote Link to comment https://forums.phpfreaks.com/topic/67968-mait/#findComment-341685 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.