Re: Headers already sent....
| From: | Don Read | Date: | Thu, 30 Aug 2001 17:49:59 +0000 |
| Subject: | Re: Headers already sent.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65350@lists.php.net to get a copy of this message | ||
On 30-Aug-2001 Nic Skitt wrote:
> Thanks Andrey but that still hasnt fixed it.
>
> The full error I am getting is:
>
> Cannot add header information - headers already sent by (output started at
> c:\apache\apache\htdocs\client-secure.php:11) in
> c:\apache\apache\htdocs\client-secure.php on line 18
>
> Line 11 refers to:
>
> $uid=$HTTP_SESSION_VARS["userid"];
>
> Now I cant understand why PHP thinks this has written to headers.
Just a guess, but is $HTTP_SESSION_VARS["userid"] set ? if not you you might be
getting some error warning here.
> Surely it
> is simply reading. And more to the point, why does this work on the live
> server but not on my dev box?
>
error_reporting();
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.