gibigbig Posted April 20, 2007 Share Posted April 20, 2007 help me, when i try to use the 'include' function in my scripts i get this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/narutoking.com/index.php:3) in /home/www/narutoking.com/common.php on line 3 can someone please explain what this means. thanks a bunch Quote Link to comment https://forums.phpfreaks.com/topic/47937-need-help-with-include-in-a-php-file-with-html-code/ Share on other sites More sharing options...
MadTechie Posted April 20, 2007 Share Posted April 20, 2007 it means you have send data to the page before calling session_start() this post may help Quote Link to comment https://forums.phpfreaks.com/topic/47937-need-help-with-include-in-a-php-file-with-html-code/#findComment-234316 Share on other sites More sharing options...
Raghav Posted April 21, 2007 Share Posted April 21, 2007 all headers must be sent before real content, therefore either your included file is sending a header after you already sent some content in the main file, or the included file sends some content and then you try to send headers in your main file. Quote Link to comment https://forums.phpfreaks.com/topic/47937-need-help-with-include-in-a-php-file-with-html-code/#findComment-234633 Share on other sites More sharing options...
in2_php Posted April 23, 2007 Share Posted April 23, 2007 Hi gibigbig, You can add php inbuit functions ob_start() and ob_flush() before the include statement to solve this problem. Regards Bob Quote Link to comment https://forums.phpfreaks.com/topic/47937-need-help-with-include-in-a-php-file-with-html-code/#findComment-235859 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.