manish

Reply

Join Date: Jun 2006
Posts: 10
Reputation: manish812 is an unknown quantity at this point 
Solved Threads: 1
manish812 manish812 is offline Offline
Newbie Poster

manish

 
0
  #1
Jun 1st, 2006
when i use session_start()
then i got error
how i tackle this problem pls help me
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 18
Reputation: demo is an unknown quantity at this point 
Solved Threads: 2
demo demo is offline Offline
Newbie Poster

Re: manish

 
0
  #2
Jun 1st, 2006
Anytime you use session_start();, you have to be sure it is called before any output is sent to the browser. (echo, print) or any white space will cause PHP to flush it's self, which will cause an error if your trying to use session_start(); after the flush.

You have (2) options...

1. make sure your not sending any output before the session call

OR

2. Use the ob_ functions to hold your output until you call the session_start();


me!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC