Re: php script error
| From: | Daniel Anderson | Date: | Fri, 18 Jun 2004 11:35:52 +0000 |
| Subject: | Re: php script error | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24022@lists.php.net to get a copy of this message | ||
Edit your PHP.ini file, and find the line:
output_buffering
set it to ON
so it is like this:
output_buffering = On
This will allow you to output the information in any location of the
document, and could resolve your problem. :)
If you don't want to allow this then check that your script is written all
before you write <html>. And don't add another Header into the document
unless it is before the HTML tag as well :)
<?php
//script
?>
<html><head><title>Hi</title></head><body></body></html>
Hope it helps,
----- Original Message -----
From: "susilo soewarno" <susilo@suarapembaruan.com>
To: <php-windows@lists.php.net>
Sent: Friday, June 18, 2004 6:56 AM
Subject: [PHP-WIN] php script error
> Can you help me,
>
> sometimes i got error message and it goes like this :
> "Cannot add header information - headers already sent by (output started
> at C:\phpnuke\html\mainfile.php:42) in C:\phpnuke\html\mainfile.php on
> line 171"
>
> For additional info, right now i'm using IIS not Apache Web Server
>
> Best Regards,
>
>
> Susilo
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>