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 do I stop a php script?
How do we get the current session id?
Explain mysql_error().
What is Different between Joomla And Magento?
What are the Formatting and Printing Strings available in PHP?
Is age interval or ordinal?
Is age nominal or ordinal?
What is difference between mysql_connect and mysqli_connect?
What is html used for?
Why do we use query?
Write a query to find the 2nd highest salary of an employee from the employee table?
What is the function in PHP do not return a timestamp?
What is php? Why it is used?
Write a program in php to print a table of a number?
Explain the importance of the function htmlentities.