[PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
I am getting the following errors attempting to set a cookie and redirect: Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 76 Warning: Cannot add header information - headers

RE: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread John W. Holmes
PROTECTED]] Sent: Saturday, September 28, 2002 9:03 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Help! Can't set cookie or redirect!!! I am getting the following errors attempting to set a cookie and redirect: Warning: Cannot add header information - headers already sent by (output

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
code so the cookie is set before any output or use output buffering. ---John Holmes... -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 9:03 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Help! Can't set cookie or redirect!!!

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Chris Shiflett
Phil Powell wrote: Ok thanx.. yeah I knew that you can set a cookie before anything is set to the browser, however, if you view my code, nothing is sent as output before the cookie is set. Yes, there is. Look at the following line in your code: phpinfo(); That comes prior to the

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
28, 2002 9:09 PM Subject: RE: [PHP] Help! Can't set cookie or redirect!!! You can only set a cookie before any output is send to the browser. A newline, space, or html, etc, is output to the browser. Redesign your code so the cookie is set before any output or use output buffering. ---John

RE: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread John W. Holmes
To: [EMAIL PROTECTED] Subject: Re: [PHP] Help! Can't set cookie or redirect!!! Ok thanx.. yeah I knew that you can set a cookie before anything is set to the browser, however, if you view my code, nothing is sent as output before the cookie is set. ? // Don't forget you have to use php4.cgi