It will fail if the first line is a blank line. For example (numbers are
line numbers):

1.
2.<?php
3. setcookie(); // etc...
4.?>

  While:

1.<?php
2. setcookie(); // etc...
3.?>

  It should work...

--

Julio Nobrega

A hora está chegando:
http://toca.sourceforge.net
"Ha Minh Nguyen" <[EMAIL PROTECTED]> wrote in message
006701c12bbd$49a2bda0$[EMAIL PROTECTED]">news:006701c12bbd$49a2bda0$[EMAIL PROTECTED]...
Hi,
I don't know why I get :
"Warning: Cannot add header information - headers already sent by (output
started at c:\windows\bureau\cookie1.php:2) in c:\windows\bureau\cookie1.php
on line 6"
message
each time I use setcookie function.

The second line is : <?php
I put <html>  at the end of the file.
Do you have any ideas ?

Thank you,
Ha Minh NGUYEN





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to