What is use of header() function in php? What the limitation of header()?



What is use of header() function in php? What the limitation of header()?..

Answer / Anurag Chaudhary

The header() function in PHP sends a raw HTTP header to the browser. It can be used to set various HTTP headers like content-type, location, etc. The limitation of the header() function is that it must be called before any actual output is sent (not even a blank line) and can only be called once per page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to check curl is enabled or not in PHP

1 Answers  


How can we get the browser properties using PHP?

4 Answers   Google, Pollux Softech,


What is the best php version for wordpress?

1 Answers  


What is php variable?

1 Answers  


What is the meaning of "enctype= multipart/form-data" ?

1 Answers  


What is $_ server request_method == post?

1 Answers  


Which is better mysql or sql?

1 Answers  


How can we check the value of a given variable is a number?

1 Answers  


What is the use of "echo" in php?

1 Answers  


Code to upload a file in PHP?

1 Answers  


What is the static variable in function useful for?

1 Answers  


Explain mysql_errno()?

1 Answers  


Categories