Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

PHP && SQL PM System


  • Please log in to reply

#1
sweft

sweft

    Member

  • Member
  • PipPipPip
  • 123 posts
edit

Edited by sweft, 23 April 2007 - 05:37 PM.

  • 0

Advertisements


#2
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
How are you storing the session. In cookies or session variables? Seeing the code would help.
  • 0

#3
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:24 PM.

  • 0

#4
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
So you must be useing session variables, so where is the session_start() ? Is it in the header.php Because if not, it is not going work work.

Attach the files next time.
  • 0

#5
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
was working. now no but I attached the files above.

Edited by sweft, 20 April 2007 - 06:41 PM.

  • 0

#6
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Define "Not Working"
  • 0

#7
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:25 PM.

  • 0

#8
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
From the errors in the PM all I can see is that $_POST['to'] is not being set. Which is find in this case.

What is in the session array, have you try print_r($_SESSION); ? Does what it prints look right?
  • 0

#9
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:25 PM.

  • 0

#10
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
:whistling:

Now that is what I was hoping for. Your calling session_start(); after your have sent out some content. This does not work. Move it too the very start of the file.
  • 0

#11
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:25 PM.

  • 0

#12
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Just to see what happens, put session_start(); At the very first link of the header.php It says the headers have already been sent in the errors, and they don't lie.
  • 0

#13
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:36 PM.

  • 0

#14
sweft

sweft

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 123 posts
edited

Edited by sweft, 23 April 2007 - 05:36 PM.

  • 0

#15
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Try adding this to you .htaccess file

php_value output_handler ob_gzhandler

It will stop any content being set out till the script has finished running. It will also save bandwidth $$ since it compresses it too.

Michael
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP