FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » curiosity mainly users online script
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
curiosity mainly users online script [message #183218] Sat, 12 October 2013 18:32 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
http://www.phpeasystep.com/phptu/9.html

I tried out this script. Works fine by itself.
when I include it in the base file, I get a warning message.
using include "file.php";

Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/home2/richbull/public_html/mroldies.net/200/audiox.php:6) in
/home2/richbull/public_html/mroldies.net/200/users.php on line 3

How is this corrected so there is no warning message?
Re: curiosity mainly users online script [message #183219 is a reply to message #183218] Sat, 12 October 2013 18:55 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 10/12/2013 11:32 AM, richard wrote:
>
> http://www.phpeasystep.com/phptu/9.html
>
> I tried out this script. Works fine by itself.
> when I include it in the base file, I get a warning message.
> using include "file.php";
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /home2/richbull/public_html/mroldies.net/200/audiox.php:6) in
> /home2/richbull/public_html/mroldies.net/200/users.php on line 3
>
> How is this corrected so there is no warning message?
>

You can correct it by taking up a new hobby, OR....every time (and this
is not an overstatement) you come here, you have petty issues that you
should be able to resolve by..

1. Listening and taking note to the solutions given to you. (hint. this
problem you are having has been explained to you a few times already prior).
2. Purchase a few PHP books and/or find some tutorial sites to learn
just the basics (this will resolve you continuous = == issue).
3. Get yourself a decent text editor (this will solve your missing ';'
and match up your brackets that you bring to us from time to time).
4. Stop being rude to those trying to help.

This is not an exhausted list but may help you in the future.
Scotty
Re: curiosity mainly users online script [message #183220 is a reply to message #183218] Sat, 12 October 2013 18:59 Go to previous messageGo to next message
Unrest is currently offline  Unrest
Messages: 10
Registered: April 2011
Karma: 0
Junior Member
Am Sat, 12 Oct 2013 14:32:59 -0400 schrieb richard:

> http://www.phpeasystep.com/phptu/9.html
>
> I tried out this script. Works fine by itself.
> when I include it in the base file, I get a warning message.
> using include "file.php";
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /home2/richbull/public_html/mroldies.net/200/audiox.php:6) in
> /home2/richbull/public_html/mroldies.net/200/users.php on line 3
>
> How is this corrected so there is no warning message?

There's data being sent out before the (first) call to session_start().
It may even be a BOM.. You gotta investigate on your own.


Yours
Michael
Re: curiosity mainly users online script [message #183230 is a reply to message #183218] Sun, 13 October 2013 14:28 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Sat, 12 Oct 2013 14:32:59 -0400, richard wrote:

> http://www.phpeasystep.com/phptu/9.html

> I tried out this script. Works fine by itself.
> when I include it in the base file, I get a warning message.
> using include "file.php";

> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /home2/richbull/public_html/mroldies.net/200/audiox.php:6) in
> /home2/richbull/public_html/mroldies.net/200/users.php on line 3

> How is this corrected so there is no warning message?

By fixing the error.

If you had been listening to and absorbing just 1% of all the help and
advice you've been given here over the years, you would already know what
causes this error and how to fix it.

If you don't listen to and absorb all the help and advice you're given
here, there's no point in giving it.

Therefore, either you already know how to fix this and don't need to be
told how to fix it, or there's no point telling you how to fix it because
you won't listen and absorb the help advice.

In either case, I see no reason to repeat help and advice that I and
others have given you before.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
Re: curiosity mainly users online script [message #183238 is a reply to message #183218] Sun, 13 October 2013 23:05 Go to previous message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
On 2013-10-12 2:32 PM, richard wrote:
>
> http://www.phpeasystep.com/phptu/9.html
>
> I tried out this script. Works fine by itself.
> when I include it in the base file, I get a warning message.
> using include "file.php";
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /home2/richbull/public_html/mroldies.net/200/audiox.php:6) in
> /home2/richbull/public_html/mroldies.net/200/users.php on line 3
>
> How is this corrected so there is no warning message?
>

Umm, don't send headers after they've already been sent? Read up on the
error; it'll tell you precisely what you need to know. The error even
tells you precisely where the error is.

For a short period of time, I thought you were simply being naive; now I
think it's more than that. Study more, every time you solve an issue,
make a note of it and record it where you can find it again.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: about php 5.4.20version
Next Topic: LAMP starting point
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 05 08:20:29 GMT 2024

Total time taken to generate the page: 0.02407 seconds