why header() gives the error like header already sent in php
please
explain in brief



why header() gives the error like header already sent in php please explain in brief..

Answer / sasmitamohanta

Generally it gives error when u print or echo some content
before header() or setcookie() methods.

To avoid the error just put the print below header();

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More PHP Interview Questions

What is abstraction php?

0 Answers  


Differentiate echo vs. Print statement.

0 Answers  


What is the use of php and mysql?

0 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

3 Answers  


what is array_search() in php?

2 Answers  






What is $row in php?

0 Answers  


In php, objects are they passed by value or by reference?

0 Answers  


What is the use of mysql_real_escape_string in php?

0 Answers  


What do you mean by core php?

0 Answers  


Why php is widely used?

0 Answers  


Why use php artisan serve?

0 Answers  


What is input sanitization in php?

0 Answers  


Categories