PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at localhost/homepage/index.php:2) in localhost/links.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at localhost/homepage/index.php:2) in localhost/links.php on line 2
I cant understand it?? I make sure session_start is in my header(links.php) this gets included on every page. It is at the top on line one and i keep getting the above errors? What am I doing wrong?
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at localhost/index.php:1) in localhost/index.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at localhost/index.php:1) in localhost/index.php on line 1
I really dont know why its not working
Any thing would be great thanks!!!
I tried putting header at top so nothing calling out else before I dont understand why this error is still happening it does not make sense. The only php I have on my index page is start_session and and a couple of includes which only call html pages.
You need to ensure there is no HTML, text or whitespace prior to the starting PHP tag. Examples of whitespace: spaces, carriage returns, tabs, line feeds, vertical tabs...
Am not sure what the hell is going on in my furry I decided to call the same form in to a basic html page. To see if it would work. It seems to work.... I dont understand why it works here.... Its neally the same as my other page...
I have even taken out most the requests out the other page and made it like this page removing the links.php and just sticking what is in this page on the page its still bringing the error... crazy!
right so I removed all requests right... basically the page is empty i have start_session at top haha thats it error lmao this weird am total confused....
I still get the following error? Am total confused?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at localhost/share-tips/index.php:1) inlocalhost/share-tips/index.php on line 1
That is a bit odd. Why would it say that the output started in index.php if you're on links.php? My guess is you're including this in the index file.
Try not using closing ?> tags at the end of your files, and make sure there's nothing (nothing!) before the starting <?php tag on both pages.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
unfortunaly I cant put the actual pages up.... normal that would be the first thing I did but as my mate wants no one to know his idea he said not to disscluse any thing on it.... I dont know what to do .... I cant work it out at all
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/mlouret/public_html/share-tips/index.php:1) in /data01/mlouret/public_html/share-tips/index.php on line 1