How to fix “Headers already sent” error?

When I run users.php file I got  error  like this


Warning: Cannot modify header information - headers already sent by (output started at /Dashboard/users.php:12) in /Dashboard/users.php on line 223

Team Leader Asked on January 25, 2017 in PHP.
Add Comment
1 Answer(s)

You are trying to send headers information after outputting the  content.

I resolved the issue by adding

 ob_start();  

in my script.

Team Leader Answered on January 26, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.