When you will get the error "Cannot add header information"?

Answers were Sorted based on User's Feedback



When you will get the error "Cannot add header information"?..

Answer / vj

Basicaly, any output to screen before an header function,
gives rise to this error.

Is This Answer Correct ?    3 Yes 0 No

When you will get the error "Cannot add header information"?..

Answer / krisha

When page has html doctype on the starting of page.or some
echo statement on page when page is return or there is
header function on same page.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What is lamp in php?

0 Answers  


What are the four scalar types of php?

0 Answers  


For printing out strings, there are echo, print and printf. Explain the differences.

3 Answers  


What is php? Why it is used?

0 Answers  


What is stripslashes php?

0 Answers  






Whether One-line comment begin with pound sing(#) in php?

2 Answers  


How to remove a file?

0 Answers  


what is the dirrence in PHP4 & PHP5 . ?

8 Answers  


What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?

0 Answers  


What language is php written in?

0 Answers  


How to create an array from php string?

0 Answers  


What is move_uploaded_file in php?

0 Answers  


Categories