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
What is php good for?
How do I run php?
What is the difference between public, protected and private?
What php framework does wordpress use?
Why do we use csrf token?
What is rtrim php?
What is the timeout period on session values?
How to avoid the undefined index error?
Why php is widely used?
Tell me what is the difference between characters 34 and x34?
What is the main difference between require() and include()?
Does php class need constructor?
What is the difference between fopen() and fclose()?
What is in a cookie?
Why does php need server?