943,759 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1134
  • PHP RSS
Jun 1st, 2006
0

manish

Expand Post »
when i use session_start()
then i got error
how i tackle this problem pls help me
Similar Threads
Reputation Points: 21
Solved Threads: 1
Newbie Poster
manish812 is offline Offline
12 posts
since Jun 2006
Jun 1st, 2006
0

Re: manish

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!
Reputation Points: 10
Solved Threads: 2
Newbie Poster
demo is offline Offline
18 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP e-mail SMTP error ???
Next Thread in PHP Forum Timeline: Cookies





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC