Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5597

Re: session question

From William Gill <noreply@domain.invalid>
Newsgroups comp.lang.php
Subject Re: session question
Date 2012-04-20 10:59 -0400
Organization A noiseless patient Spider
Message-ID <jmrtjk$q08$1@dont-email.me> (permalink)
References <jm70n9$r71$1@dont-email.me> <4f8829ac$0$2880$a8266bb1@newsreader.readnews.com> <jm9p3p$c7q$1@dont-email.me> <jmr0c2$qq9$1@dont-email.me> <jmrjqc$ubd$2@dont-email.me>

Show all headers | View raw


On 4/20/2012 4:55 AM, M. Strobel wrote:
 >
 > The error is in your PHP file.
 >

On 4/20/2012 8:11 AM, Jerry Stuckle wrote:
> Horse hockey. Fix your code and the problem will go away.
>
> The ONLY reason you get that message is because you've already sent SOME
> output to the client. It could be a DOCTYPE, white space or any of a
> number of things. But SOMETHING caused the output to be sent.
>
> And if you look at the following message it should tell you exactly
> where that output came from.
>

I know what the documentation says, and I know what's actually 
happening.  I have checked "my code"

from the test page:


<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">

the first 5 characters in the file are "<?php".

I will pursuing it with the semi-nitwits my hosting company calls 
"support."

In the mean time I was hoping someone might look past the knee-jerk "You 
f'ed up" response (my initial response too), and give me a clue how or 
why something is being output before it's supposed to be. I'd be open to 
suggestions how to test what and when the server sends.

I guess I can use telnet to see what the server is sending.

Erwin,

I can't echo anything before the DOCTYPE declaration, and anything 
visible would be long after the headers were sent, but thanks.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

session question William Gill <noreply@domain.invalid> - 2012-04-12 12:43 -0400
  Re: session question Scott Johnson <noonehome@chalupasworld.com> - 2012-04-12 09:56 -0700
  Re: session question "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-12 19:43 +0200
  Re: session question "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-12 19:59 +0200
  Re: session question Captain Paralytic <paul_lautman@yahoo.com> - 2012-04-13 02:18 -0700
  Re: session question Denis McMahon <denismfmcmahon@gmail.com> - 2012-04-13 13:27 +0000
    Re: session question William Gill <noreply@domain.invalid> - 2012-04-13 13:51 -0400
      Re: session question Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-13 15:54 -0400
      Re: session question William Gill <nospam@domain.invalid> - 2012-04-20 02:40 -0400
        Re: session question "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-20 10:55 +0200
        Re: session question Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-04-20 11:25 +0200
        Re: session question Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 08:11 -0400
          Re: session question William Gill <noreply@domain.invalid> - 2012-04-20 10:59 -0400
            Re: session question William Gill <noreply@domain.invalid> - 2012-04-20 11:32 -0400
            Re: session question Michael Fesser <netizen@gmx.de> - 2012-04-20 17:50 +0200
              Re: session question William Gill <nospam@domain.invalid> - 2012-04-20 12:04 -0400
                Re: session question Tim Streater <timstreater@greenbee.net> - 2012-04-20 18:17 +0100
                Re: session question "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-20 20:08 +0200
                Re: session question Tim Streater <timstreater@greenbee.net> - 2012-04-20 20:36 +0100
                Re: session question William Gill <nospam@domain.invalid> - 2012-04-21 18:13 -0400
                Re: session question Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 14:22 -0400
                Re: session question William Gill <nospam@domain.invalid> - 2012-04-20 15:04 -0400
                Re: session question The Natural Philosopher <tnp@invalid.invalid> - 2012-04-20 22:09 +0100
                Re: session question Michael Fesser <netizen@gmx.de> - 2012-04-20 21:13 +0200
                Re: session question Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 15:45 -0400
                Re: session question Tim Streater <timstreater@greenbee.net> - 2012-04-20 23:11 +0100
                Re: session question The Natural Philosopher <tnp@invalid.invalid> - 2012-04-20 23:23 +0100
                Re: session question Tim Streater <timstreater@greenbee.net> - 2012-04-21 13:14 +0100
                Re: session question Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-20 18:45 -0400
                Re: session question Michael Fesser <netizen@gmx.de> - 2012-04-21 01:24 +0200
                Re: session question The Natural Philosopher <tnp@invalid.invalid> - 2012-04-21 01:28 +0100

csiph-web