Jump to content
xisto Community
Sign in to follow this  
khalilov

Changes

Recommended Posts

I just got hosted and i am everything is working fine, but i got this in one of the pages:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/economy.php:4) in /home/khalilov/public_html/topview.php on line 9

I am used include inside a php file, the file i included had session_start() and so did the main file i used include in, is that a problem? if not whats the reason of this error?

Share this post


Link to post
Share on other sites
<html><link rel="stylesheet" type="text/css" href="look.css" /><b><?phpsession_start();

i change it to
<?php session_start();?><html><link rel="stylesheet" type="text/css" href="look.css" /><b><?php

and it gave
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/economy.php:4) in /home/khalilov/public_html/topview.php on line 1

note that i used session_start() when the player logs in, and i put it in the begining of every php scrip, perhaps thats the issue?
I doubt it though cuz everytime i remove the session_start nothinh shows since i use $_SESSION['..'] to get info, so iam guessing its needed so that you can keep reading variables stored on login

Share this post


Link to post
Share on other sites
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/militarytrain.php:5) in /home/khalilov/public_html/militarytrain.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/economy.php:4) in /home/khalilov/public_html/topview.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/economybuildings.php:4) in /home/khalilov/public_html/topview.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/workers.php:5) in /home/khalilov/public_html/topview.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/militarytrain.php:5) in /home/khalilov/public_html/militarytrain.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/militaryresearch.php:5) in /home/khalilov/public_html/militaryresearch.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/khalilov/public_html/armies.php:5) in /home/khalilov/public_html/armies.php on line 7

Its happening everywhere O.o, all pages have include('topview,php'), in top view i use sessionstart, and then i also use it at the lines showing in error ,could that be the problem?

economy.php
<html><link rel="stylesheet" type="text/css" href="look.css" /><body><?phpinclude('topview.php');include('leftmenu.php');include('economystatus.php');?></body></html>

Iam lost =(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.