
Cannot Add Header Information Error
[snip]
Quote:
> Warning: Cannot add header information - headers already sent by
(output
> started at /home/vansvaul/public_html/outreach/sess.php:156)
Have a look at the file sess.php. Go to line 156, and see what could
possibly be outputting *anything* to the client both _on_ and _around_
this line. It could be a blank line that is not contained in php code,
e.g.
##########################
<?php
blah blah blah;
?>
<?php
blah
......
##########################
or it could be a rogue echo, print, sprintf, etc. If you can't find
the problem, post the source code
Quote:
function
> call, but that just suppresses the error message, and the redirect
still
> does not complete. I've tried to use a flush() before the header()
call
> also, to no avail.
Flush() is the wrong command to be using here. Flush() will just send
anything waiting in the output buffers on it's way to the client.
You could always buffer your output with ob_start() -- then the
problem is gone (most likely). But finding the cause & fixing it is
better than putting in workarounds.
Cheers,
Will M
--
Registered Linux User #273744
<www.volutin.net -- everything irrelevant>