Re: session_star() problem
| From: | Jim Lucas | Date: | Fri, 26 Oct 2001 22:15:44 +0000 |
| Subject: | Re: session_star() problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72519@lists.php.net to get a copy of this message | ||
this means that on line 8 of the product_list.php file, you are sending
something to the browser with print() echo or ?>something<?
find out what is on that line
then, make sure that the session_start(); is the first thing that gets
called.
jim
----- Original Message -----
From: "Gate" <gate@psu.edu>
To: <php-general@lists.php.net>
Sent: Friday, October 26, 2001 3:07 PM
Subject: [PHP] session_star() problem
> Ok I am starting on small web site and using PHP 4 on Apache with FreeBSD
> 4.4 as the OS. I need to use sessions to pass some info around between
> pages but when I use session_start() I get the error msg below.
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at /usr/home/gate/public_html/product_list.php:8) in
> /usr/home/gate/public_html/product_list.php on line 9
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at /usr/home/gate/public_html/product_list.php:8) in
> /usr/home/gate/public_html/product_list.php on line 9
>
> I get this msg if it is the only thing in the php script as well as if it
is
> in an actually script that I am using. Maybe I don't php set up right or
> something else.Could some one please put me in the right direction.
>
> Greg
>
> please reply to my email as well as the newsgroup
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>