See if there is any symbol before <?php open tag.
Also this seems bad :
$uid=$HTTP_SESSION_VARS[userid];
may be: 
$uid=$HTTP_SESSION_VARS["userid"];

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%

----- Original Message ----- 
From: "Nic Skitt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:50 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]
> 
> 


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