Re: Headers already sent....

From: Date: Thu, 30 Aug 2001 10:42:23 +0000
Subject: Re: Headers already sent....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-65212@lists.php.net to get a copy of this message
Sagar, Thanks but there isnt any spaces or HTML. The code on the page starts with the PHP tags and nothing else. Nic "Sagar" <sagarphp@yahoo.com> wrote in message 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 <nic@nicskitt.co.uk> > To: <php-general@lists.php.net> > 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: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >

« previous php.general (#65212) next »