whm autopilot

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

whm autopilot

Post 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
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

if you would only take a second to search

this topic has been covered 100x and counting

viewtopic.php?t=1157
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Thats because you have output before the sent header information!
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Damn, just missed it :(
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

8)
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post 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!
Post Reply