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

Explain what is the main difference between require() and require_once()?

0 Answers  


What is full form of PHP?

0 Answers  


i was set new individual folder for saving session values,the folder name is session and i set 777 permission,using session.save_path function like session.save_path "/home21b/sub004/sc21311-ULCX/candyoflove.com/session/" but it causing Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 12112/12112 is not allowed to access /home21b/sub004/sc21311-ULCX/candyoflove.com/session owned by uid/gid 12267/12267 in Unknown on line 0 ,please tell what changes make this script, i was using .htaccesss file..plz help me....

1 Answers  


What types of Data Can Be Used as Array Keys?

0 Answers  


How we can declare variable in php?

0 Answers  






Explain what does the function get_magic_quotes_gpc() means?

0 Answers  


Explain the difference between array_merge() and array_combine()?

0 Answers  


Can we learn php without html?

0 Answers  


What happens if an expected input field was not submitted?

0 Answers  


What is php and how do you use it?

0 Answers  


How to set a value in session? How to remove data from a session?

0 Answers  


What are arguments in php?

0 Answers  


Categories