when you will get the message/error "headers already sent"?
Answer Posted / luan nguyen
you get header already sent when you call header() after you
have posted other data to the browsers.
Example:
<?php
echo "Hello World";
header("Location: http://new.url.com");
?>
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Is false empty php?
Does php 7 support multiple inheritance?
Write down the code for save an uploaded file using php?
What are the main error types in php?
Why constructor is not overridden?
Swap two variables value without using third variable in php ?
What is csrf token and how will you add csrf token in ajax?
What are the methods useful for method overloading?
Why do we use cookie?
What is the difference between require_once and require in php?
Can you define an array argument as a reference type?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
Explain some of the php string functions?
What is difference between compile time and run time polymorphism?