_giles_ Posted February 7, 2007 Share Posted February 7, 2007 Hi, I’m not sure if i’m just getting myself confused here! I want to build a simple redirection along the lines of : <?php require_once "siteDefaultsPage.inc"; if (!INTERACTION_TEST){ // redirect to new URL } ?> in order to control access to a page. I’m getting caught up with the headders being sent from the .inc file - however, I need the .inc file to set the variable INTERACTION_TEST. Can you help? Link to comment https://forums.phpfreaks.com/topic/37442-if-and-page-redirection/ Share on other sites More sharing options...
trq Posted February 7, 2007 Share Posted February 7, 2007 Does siteDefaultsPage.inc really need to output anything to the browser? delete any whitespace outside of <?php tags and try again. Link to comment https://forums.phpfreaks.com/topic/37442-if-and-page-redirection/#findComment-179032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.