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
How can php and javascript interact?
What is $_ server request_method == post?
Tell me how can we change the maximum size of the files to be uploaded?
Where is php code written?
What is difference between rest and http?
Tell me in php, objects are they passed by value or by reference?
How can we display information of a variable and readable by a human with php?
How do I escape data before storing it in the database?
How check field is empty or not in php?
Tell me what sized websites have you worked on in the past?
Which function Returns the time of sunrise for a given day / location in PHP.
How do you destroy a particular or all Sessions?
How to count all the lines of code in a directory and sub folder?
How are cookies created?
What is default session time and path in php?