Re: Warning when calling session_start()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, folks,

On Tue, 21 Dec 2010 21:35:17 -0800 [06:35:17 AM CET],
Michael Shadle <mike503@xxxxxxxxx> wrote:

> first - this is probably your culprit:
> don't output empty lines before you do
> anything (just a general good practice)

Whow! This did the trick !

Warning vanished when I changed beginning of
script to:

1 <?php session_start ();
2

I wasn't aware that the HTML comment and the
following empty line are in fact written to
output.  But that's clear now  :-)

So I suppose my local PHP setup supressed this
warning or is more compliant ...

> also i'd turn on output buffering.

Since it worked without warning at 1st try,
I haven't changed output buffering (yet).

Mike, many thanks for Your PROMPT and HELPFUL
answer! Have a nice day!

Rolf
-- 
Dipl.phys. Rudolf Otto BlÃttner,
D 91074 Herzogenaurach, Germany.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux