headers already sent

Report bugs of current version 2.2.5 here!

Moderators: Moderator Team, Development Team

headers already sent

Postby chromer on Sun Feb 08, 2004 4:08 pm

the experienced might not consider it a bug, and at one time, I didn't either when I was writing my own php projects.

However, it is a bug. Why?

Because for instance on some servers you can't edit php.ini and set the output bufferring to on and then you have to add manually the function
ob_start(); to config.inc.php near the top and the function ob_end_flush(); to the bottom of include/foot.inc.php

Do that solves the headers already sent problem on systems where one can not edit their own php.ini file. For instance, I use mesopia and there you can't edit it if you are using a shared host.
chromer
 
Posts: 3
Joined: Sun Feb 08, 2004 3:44 pm

Postby sdjl on Mon Feb 09, 2004 1:52 pm

Why do you need output buffering on in the first place?

I don't understand what bug you are reporting for pphlogger... Care to explain?

You could add the following to your scripts to turn output buffering on:

[php]
<?php
ini_set ('output_buffering', 1);
?>
[/php]

David
User avatar
sdjl
Moderator
 
Posts: 1282
Joined: Mon Nov 17, 2003 1:13 am
Location: London, UK


Return to PPhlogger bug reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron