No, absolutely nothing.

George
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 11:34 AM
Subject: Re: [PHP] another easy cookie question


> Do you have any white spaces or carriage returns before your headers? If
so
> get rid of them.
>
> ----- Original Message -----
> From: "George Pitcher" <[EMAIL PROTECTED]>
> To: "Kelly Barrett" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
> Sent: Friday, September 14, 2001 3:21 AM
> Subject: Re: [PHP] another easy cookie question
>
>
> > Kelly,
> >
> > Thanks for the tip but having re-arranged my code I still get the same
> > message.
> >
> > New coding =
> >
> > <?php
> > header("Location:index.php");
> > setcookie("Cookievalue", "abcdefghijklmnopqrstuvwxyz0123456789",
> > time()+3600);
> > ?>
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> > </head>
> >
> >
> > Any suggestions?
> >
> > George
> >
> > ----- Original Message -----
> > From: "Kelly Barrett" <[EMAIL PROTECTED]>
> > To: "George Pitcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Friday, September 14, 2001 11:31 AM
> > Subject: Re: [PHP] another easy cookie question
> >
> >
> > > Hi George,
> > > You must output all headers (including cookies) before you output any
> > > content.
> > >
> > > So, you just need to move your header and setcookie calls so they are
> > above
> > > the <html> and <head> tags.
> > >
> > > e.g.
> > >  <?php
> > >  header("Location:index.php");
> > >  setcookie("Cookievalue", "abcdefghijklmnopqrstuvwxyz0123456789")
> > >  time()+3600);
> > >  ?>
> > >  <html>
> > >  <head>
> > >
> > >
> > > Cheers,
> > > Kelly.
> > >
> > > > Hi all,
> > > >
> > > > This is what I have at the top of my php page (php-4.0.6-winNT).
> > > >
> > > > <html>
> > > > <head>
> > > > <?php
> > > > header("Location:index.php");
> > > > setcookie("Cookievalue", "abcdefghijklmnopqrstuvwxyz0123456789")
> > > > time()+3600);
> > > > ?>
> > > > <title>Untitled Document</title>
> > > > <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> > > > </head>
> > > >
> > > > I get the following error.
> > > >
> > > > CGI Error
> > > > The specified CGI application misbehaved by not returning a complete
> set
> > > of
> > > > HTTP headers.  The headers it did return are:
> > > >
> > > > ... and nothing else!
> > > >
> > > > Where am I going wrong? I bet it's a simple answer.
> > > >
> > > > George P in Edinburgh
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _________________________________________________________
> > > > Do You Yahoo!?
> > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > >
> > > >
> > > > --
> > > > 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]
> > > >
> > > >
> > >
> > >
> > > --
> > > 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]
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > 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]
> >
>
>
> --
> 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]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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