TrainReq
06-04-2007, 03:49 AM
I am trying to do a header location.. but it is messing up .. it is giving me the following error
Cannot modify header information - headers already sent by (output started at /home/content/i/n/n/****/html/***/connect2.php:19)
I am using the following code
if($_SERVER['HTTP_REFERER'] =="http://profileawareness.com/forums"){
}else{
header("location: http://profileawareness.com/denied.html");
}
And it is giving an error in an included file (connect2.php), which all that has is some simple mysql querys (only 7 lines of code)
Cannot modify header information - headers already sent by (output started at /home/content/i/n/n/****/html/***/connect2.php:19)
I am using the following code
if($_SERVER['HTTP_REFERER'] =="http://profileawareness.com/forums"){
}else{
header("location: http://profileawareness.com/denied.html");
}
And it is giving an error in an included file (connect2.php), which all that has is some simple mysql querys (only 7 lines of code)