Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I stop a php script?

1012


How do we get the current session id?

1058


Explain mysql_error().

1041


What is Different between Joomla And Magento?

2896


What are the Formatting and Printing Strings available in PHP?

1131


Is age interval or ordinal?

996


Is age nominal or ordinal?

1010


What is difference between mysql_connect and mysqli_connect?

1106


What is html used for?

1065


Why do we use query?

993


Write a query to find the 2nd highest salary of an employee from the employee table?

1086


What is the function in PHP do not return a timestamp?

1071


What is php? Why it is used?

1197


Write a program in php to print a table of a number?

985


Explain the importance of the function htmlentities.

1048