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

What is php good for?

908


How do I run php?

966


What is the difference between public, protected and private?

941


What php framework does wordpress use?

999


Why do we use csrf token?

923


What is rtrim php?

1002


What is the timeout period on session values?

1063


How to avoid the undefined index error?

977


Why php is widely used?

935


Tell me what is the difference between characters 34 and x34?

960


What is the main difference between require() and include()?

953


Does php class need constructor?

926


What is the difference between fopen() and fclose()?

1089


What is in a cookie?

951


Why does php need server?

966