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 can php and javascript interact?

1296


What is $_ server request_method == post?

1064


Tell me how can we change the maximum size of the files to be uploaded?

980


Where is php code written?

995


What is difference between rest and http?

1006


Tell me in php, objects are they passed by value or by reference?

964


How can we display information of a variable and readable by a human with php?

976


How do I escape data before storing it in the database?

994


How check field is empty or not in php?

1047


Tell me what sized websites have you worked on in the past?

897


Which function Returns the time of sunrise for a given day / location in PHP.

1089


How do you destroy a particular or all Sessions?

1002


How to count all the lines of code in a directory and sub folder?

968


How are cookies created?

961


What is default session time and path in php?

1061