I am including a page half way down my index.php. The page that is being included has session_start(); . I think i am getting the warning below because of the location i am calling the include file. How can i fix this? TIA
[Thu Jul 01 20:35:52 2004] [error] [client 66.25.196.170] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\WWW\bitphire\index.php:13) in C:\WWW\bitphire\navigation.php on line 2 [Thu Jul 01 20:35:52 2004] [error] [client 66.25.196.170] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\WWW\bitphire\index.php:13) in C:\WWW\bitphire\navigation.php on line 2
You may want to check this
http://au.php.net/manual/en/ref.outcontrol.php It has an example using a cookie which will work in similar form. However id suggest trying to use the session_start(); before any output so you can avoid using these functions.
Problemed Solved. I just had an issue with my db setup. i was submitting a var to large for the field so it cut the var short and i was checking for the original var not the short var. Thanks anyway.