[PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread GodFoca
I'm getting this error: Warning: Cannot add header information - headers already sent by (output started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php on line 11 With this code in main.php: html ? define(SECONDS_IN_THREE_MONTHS, 3600*24*90);

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Kevin Murphy
I'm a newbie to PHP too, but I think its the HTML tag. Move it down below the PHP and see what happens. -- Kevin Murphy Web Designer - Stubborn Donkey Productions www.stubborndonkey.com On May 21, 2004, at 1:28 PM, GodFoca wrote: I'm getting this error: Warning: Cannot add header

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Daniel Clark
Try putting your HTML below setting the cookie. I'm getting this error: Warning: Cannot add header information - headers already sent by (output started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php on line 11 With this code in main.php: html ?

RE: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Chris W. Parker
GodFoca mailto:[EMAIL PROTECTED] on Friday, May 21, 2004 1:29 PM said: Warning: Cannot add header information - headers already sent by (output started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php on line 11 [snip] Does anybody knows what's going on? I don't

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Stephen Lake
All headers have to be sent before any output is sent to the browser. Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] GodFoca mailto:[EMAIL PROTECTED] on Friday, May 21, 2004 1:29 PM said: Warning: Cannot add header information - headers already sent by (output