Sagar,

Thanks but there isnt any spaces or HTML. The code on the page starts with
the PHP tags and nothing else.

Nic

"Sagar" <[EMAIL PROTECTED]> wrote in message
00c001c13141$cd995d60$5bed7ccb@ravella">news:00c001c13141$cd995d60$5bed7ccb@ravella...
> This will not work even if the code is like this
> <html>
>
> <?
> your php
>
> ?>
> remaining html
>
> see that theres no spaces till the php code starts.
> the code must be like
> <html>
> <?
> php code
>
> ?>
> remaining html
>
> /sagar
>
>
> ----- Original Message -----
> From: Nic Skitt <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 3:20 PM
> Subject: [PHP] Headers already sent....
>
>
> > Hi all,
> >
> > I have a bit of a confusing one here. I have two enviroments:
> >
> > 1) Live server
> > -PHP Version 4.0.3pl1 - Nov 21 2000
> > -Apache/1.3.12 Cobalt (Unix)
> > -Linux
> >
> > 2) Local development
> > -PHP Version 4.0.6
> > -Apache/1.3.20 (Win32)
> > -Windows 2000 Pro
> >
> > Now on the live server everything works fine but on my dev server,
certain
> > scripts return errors claiming that "Cannot add header information -
> headers
> > already sent by..."
> >
> > Both servers have output_buffering set to off.
> >
> > The pages where the issue seems to arise contain session handling code
and
> > location headers eg:
> >
> > <?
> >
> > session_start();
> > $sid=session_id();
> > $uid=$HTTP_SESSION_VARS[userid];
> >
> > if (!$uid){
> >  header("location:client-login.php?validate=1");
> >  exit();
> > }
> >
> > ?>
> >
> >
> > Anyone any ideas?? I am clean out.
> >
> > Cheers
> >
> > Nic
> >
> >
> >
> > --
> > 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