Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

header error help needed

Status
Not open for further replies.

philstockham

Technical User
Joined
Feb 21, 2005
Messages
20
Location
GB
i have the following error:


Warning: Cannot add header information - headers already sent by (output started at c:\phpdev\ in c:\phpdev\ on line 43


someone told the conf file needs to be changed to get round this. but how should i change it???
 
nothing to do with the conf file. you can't alter the header information (with header())once any output has been sent to the browser (even a blank line).

two ways through this:

1. rengineer your code so that you define the headers before you send the output - this is the better method

2. start your script with ob_start() and end it with ob_flush(). this will buffer all the output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top