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 / dhiraj

when we are using the session variable..and want to start
our session.. we use session_start(); in the very first
line.
anything occur before this line, even a single space we get
the headers already sent error.
To overcome this problem, we can use ob_start(); at the
very first line and ob_end_flush(); at the end of the
script..

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is server side a session?

986


Can php run without server?

1087


What is php7?

1136


What is an operator in php?

1096


What are php strings?

1032


What are the ways to include file in php?

1046


What are the different opening and closing tags available in PHP?

1017


How to generate a character from an ascii value?

1307


What is new static in php?

1054


What is super () python?

1080


Explain about looping in PHP?

1113


How big is varchar max?

1033


Tell me what are the __construct() and __destruct() methods in a php class?

1059


How to call php function from javascript using ajax?

1055


What are the 3 scope levels available in php and how would you define them?

1007