| | |
manish
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2005
Posts: 18
Reputation:
Solved Threads: 2
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!
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!
![]() |
Similar Threads
- New line Character in column alias (MS SQL)
- Tell us about yourself! (Community Introductions)
- hi (Community Introductions)
- Query (MS SQL)
- help with datagrid in vb.net (Visual Basic 4 / 5 / 6)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
Other Threads in the PHP Forum
- Previous Thread: PHP e-mail SMTP error ???
- Next Thread: Cookies
| Thread Tools | Search this Thread |
apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime global google host href htaccess html image include insert ip javascript joomla limit link list login mail memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php problem query radio random recourse recursion regex remote script search seo server sessions sms snippet soap source space sql static syntax system table thesishelp trouble tutorial update upload url validator variable video web webdesign wordpress xml youtube





