-3

I am facing a problem. So please don't mention other solution. So far i found many solution like white space before

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /homepages/27/d595312696/htdocs/application/config/database.php:1)

Filename: libraries/Session.php

Line Number: 689

But i did not find any error. Please help specifically. I have searched duplicate question but can't get yet any solution. It works on local server. But after uploading it online server i found this problem

joseph
  • 13
  • 2

1 Answers1

0

You have somewhere a call to header() and before you are outputing some text to the page. All headers should be specified before any output.

From http://php.net/manual/en/function.header.php

<html>
<?php
/* This will give an error. Note the output
 * above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
João Gonçalves
  • 3,903
  • 2
  • 22
  • 36