Jump to content
×
×
  • Create New...
  • 0

script error


emanuel

Question

Hellow,when i loggout from a itemshop i get this error :

Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 205

this is line 205 from functions.php :

function logout()

{

	session_destroy();

	unset($_SESSION['id']);

[line 205] -->	header("Location: index.php?p=login");

}

and when i want to loggin i get this error :

Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 81

this is function line 81 :

		if($userRow['status']=='OK')

		{

			$_SESSION['id'] = $userRow['id'];

			$_SESSION['fingerprint'] = md5($_SERVER['HTTP_USER_AGENT'] . 'x' . $_SERVER['REMOTE_ADDR']);

			if($shop)

				header("Location: shop?p=home");

			else

	[line 81]   ---->	header("Location: index.php?p=home");

			return true;

i must refresh the page and warning is gone..and everything is ok..some help please ?

Thx

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

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


  • Read our Rules
  • Activity

    1. 0

      Fix CursorImage 'NoneType' object is not callable.

    2. 0

      [Land of Heroes] We are looking for Game / Game Economy Designers

    3. 177

      Render Target Remastered

    4. 1

      MySQL stop when start server

    5. 0

    6. 59

      Emoji in TextLine

    7. 1

      MySQL stop when start server

  • Recently Browsing

    No registered users viewing this page.

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.