Getting error in php header function -


this question has answer here:

when i'm using php header function i'm getting error this,

cannot modify header information - headers sent  

i know should use ob_start(); @ beginning of code rid error , used nevertheless i'm getting error, please tell me i'm going wrong? code i'm getting error.

function insert_charset_header() {  header('content-type: text/html; charset=utf-8');  exit;  }  

thanks in advance

that should first function before else, check space in code @ end of file: see question/answer: how fix "headers sent" error in php


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -