Page 1 of 1

whm autopilot

Posted: Fri Aug 06, 2004 4:50 pm
by SidewinderX
hello i downloaded the program whm autopilot

and i get this error

Warning: Cannot modify header information - headers already sent by (output started at C:\www\hosting\plans.php:5) in C:\www\hosting\step_one.php on line 107
lines 106 - 110

Code: Select all

<?php
// End Session Management
		header("Location: ".$http_web."step_two.php?sid=".trim($sid)."&gid=".trim($gid));
		exit;
		}
	}
?>
Any help is appreciated, thanks

Posted: Fri Aug 06, 2004 4:52 pm
by tim
if you would only take a second to search

this topic has been covered 100x and counting

viewtopic.php?t=1157

Posted: Fri Aug 06, 2004 4:52 pm
by Joe
Thats because you have output before the sent header information!

Posted: Fri Aug 06, 2004 4:53 pm
by Joe
Damn, just missed it :(

Posted: Fri Aug 06, 2004 4:53 pm
by tim
8)

Posted: Fri Aug 06, 2004 6:36 pm
by Joe
Well if you view the PHP Manual you will see a paragraph saying:
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.
It's worth reading about this!