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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why php is used in html?

527


What is difference between Method overriding and overloading in PHP?

543


Is php front end?

503


What is difference between mysql_fetch_array and mysql_fetch_assoc?

495


What are the features of php?

549






How arrays are passed through arguments?

608


How to enable error reporting in php?

533


Explain some of the php string functions?

525


What does mysqli_query return?

519


Where are php configuration settings stored?

529


What is the use of array_count_values() in php?

532


What is member variable?

548


Why do you need php?

521


How can I display text with a php script?

477


How can you encrypt password using php?

514