Jump to content

need help with 'include' function


gibigbig

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/47938-need-help-with-include-function/
Share on other sites

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

 

Means, the file your trying to include, is trying to start a session "Session_Start()", after the page/script your including it in, has already sent data to the page, session_start() has to be the first thing on the page.

 

so, your best bet is to add in a <?php session_start(); ?> to the top of index.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.