Getting error in php header function -
this question has answer here:
- how fix “headers sent” error in php 11 answers
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
Post a Comment