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

Is false empty php?

942


Does php 7 support multiple inheritance?

935


Write down the code for save an uploaded file using php?

890


What are the main error types in php?

1008


Why constructor is not overridden?

920


Swap two variables value without using third variable in php ?

1006


What is csrf token and how will you add csrf token in ajax?

907


What are the methods useful for method overloading?

976


Why do we use cookie?

906


What is the difference between require_once and require in php?

1017


Can you define an array argument as a reference type?

876


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

907


what is variable scope, which variables are accessible from where and what are "undefined variable" errors?

997


Explain some of the php string functions?

914


What is difference between compile time and run time polymorphism?

955