Date: 07/25/01
- Next message: chris: "[phplib] redeclare page_open()"
- Previous message: Julio Oliveira: "[phplib] How to do echo and setcookie at the same time"
- In reply to: Julio Oliveira: "[phplib] How to do echo and setcookie at the same time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
on 7/25/01 9:17 AM, Julio Oliveira at dblot <email protected> wrote:
> Hi
> I´m new to this list and PHP (sorry by my english)
> I´m working at e-commerce web new product.
> I need to see what hapen (debug) with some variables, i use the echo like
> this
>
> // debug
> echo "row 0 -- > $row[0] <br> " ;
> print "row 1 -- > $row[1] <br>";
> print "row 2 -- > $row[2] <br>";
>
> but next when the program have to put the cookie there is and error
>
>
> setcookie("LIBRETA");
> setcookie("LIBRETA_NOM");
> setcookie("LIBRETA_NIV");
>
> The error say´s
>
> " Cannot add header information - headers already sent by ( the line off //
> debug )..
>
> Whats wrong...
>
> Thanks in advanced
>
> Julio Oliveira - Buenos Aires - Argentina
> Oliveira_Julio <email protected>
>
>
>
As soon as you print something to the screen, the header information can not
be sent to the server. If you need to check your variables, always do it
after any page_open() or setcookie, etc...
-- Jesse Swensen swensenj <email protected>-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: chris: "[phplib] redeclare page_open()"
- Previous message: Julio Oliveira: "[phplib] How to do echo and setcookie at the same time"
- In reply to: Julio Oliveira: "[phplib] How to do echo and setcookie at the same time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

